Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/local/bin/node: not found

Tags:

npm

unix

I kept getting the error above, when I do which node I got the following error:

/usr/bin/node

so in my .bash_profile, I've put in:

export PATH=/usr/bin:$PATH

but still the error doesn't go away

like image 387
xonegirlz Avatar asked Apr 12 '13 13:04

xonegirlz


2 Answers

If you can not or do not want to change the program you are running. (you could just change the /usr/local/bin/node to /usr/bin/node in that program), an alternative solution is to create a link from your node installation to the path it is trying to load it from.

Run this as root:

ln -s /usr/bin/node /usr/local/bin/node 

Where the first path parameter is the source, and second path parameter as destination

like image 111
Thijs Dalhuijsen Avatar answered Nov 07 '22 12:11

Thijs Dalhuijsen


It is perfectly normal and it is not an error. When you run which, the result will be the location of the program if it is successfully installed.

like image 4
THC Avatar answered Nov 07 '22 10:11

THC