prettier-emacs icon indicating copy to clipboard operation
prettier-emacs copied to clipboard

Cannot find prettier anywhere

Open UriMtzF opened this issue 2 years ago • 2 comments

If prettier is installed by the package manager, it can be accessed by terminal, using which prettier outputs the path to prettier however the extension can't use it.

However, prettier installed by npm just works.

Prettier was installed using Pacman on EndeavourOS.

UriMtzF avatar May 12 '22 05:05 UriMtzF

Same issue.

felzix avatar Feb 03 '24 19:02 felzix

I guess it might be caused by call-process instead of call-process-shell-command in the code, which might not bring environment settings from shell. You can specify the location of prettier to prettier-js-command if you want.

t1anchen avatar May 15 '24 10:05 t1anchen