Reputation: 2856
$ sudo apt-get install python g++ make
$ wget http://nodejs.org/dist/node-latest.tar.gz
$ tar xvfvz node-latest.tar.gz
$ cd node-v0.10.21 (replace a version with your own)
$ ./configure
$ make
$ sudo make install
I keep getting:
#nodejs --version
/usr/bin/nodejs: No such file or directory
I understand though, everything seems to be installed here:
installing /usr/local/bin/node
How do i fix this?
Many thanks! I am very new to linux and how this all works.
By the way: apt-get install nodejs
does work but it does not install version 0.12.
In addition, if i try npm it also cant find it.
Upvotes: 0
Views: 1211
Reputation: 31
npm -v is not working in your system just do this
open my computer or this pc
right click & select properties
click on advanced system settings in advanced tab click on environment variables
in system variable remove semicolon from ComSpec
C:\Windows\system32\cmd.exe;
change this as
C:\Windows\system32\cmd.exe
Now it will work..
Upvotes: 0
Reputation: 816810
It seems like /usr/local/bin
is not in your PATH
and thus the executable cannot be found. Add it to your PATH
as described in How to permanently set $PATH on Linux?.
If you just link the one executable, you will have the same problem with any other executable added to /usr/local/bin
.
Upvotes: 1