Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm 9 env: node: No such file or directory

I am using csscomb to prettify my .scss files. All was fine until I upgraded to PhpStorm 9.

csscomb runs without any problem from the terminal, but PhpStorm seems not to recognize node's path. When I run the command I get:

env: node: No such file or directory

Process finished with exit code 127

Any idea how to configure this ? Tried to edit path manually but failed.

like image 440
nicodev Avatar asked Jul 09 '15 08:07

nicodev


3 Answers

To fix this you need to symlink the nodejs executable to node

sudo ln -s "$(which nodejs)" /usr/local/bin/node

If you installed node with nvm

sudo ln -s "$(which node)" /usr/local/bin/node

like image 188
user2744965 Avatar answered Nov 03 '22 17:11

user2744965


Restarting phpstorm fixed the issue. Still wondering why...

like image 20
nicodev Avatar answered Nov 03 '22 18:11

nicodev


enter image description here enter image description here

because not found nodejs, open & edit the lesscss program code first line, tell him where is the nodejs.

like image 40
user5725340 Avatar answered Nov 03 '22 17:11

user5725340