prettier / prettier-emacs

Minor mode to format JS code on file save
http://jlongster.com/A-Prettier-Formatter
372 stars 53 forks source link

Cannot find prettier anywhere #71

Open UriMtzF opened 2 years ago

UriMtzF commented 2 years ago

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.

felzix commented 5 months ago

Same issue.

t1anchen commented 1 month ago

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.