I installed Webstorm and wanted Prettier.
I simply installed the Prettier extension and added a File Watcher (as stated in the Doc)
But Prettier refused to run with “node not found” something…
I added this line to my
.bashrc file to make sure NVM creates a symlink to the current node version:
<br />export NVM_SYMLINK_CURRENT=true
Then I edited my environment
sudo nano /etc/environment and added this folder at the end of my PATH
/home/tanguy/.nvm/current/bin (the NVM symlink)
Now Webstorm will launch and Node will be in the PATH so Prettier runs fine.
Oh and I had to add some command line arguments to the Prettier File Watcher on Webstorm because the plugin was not reading my eslintrc.js configuration file.