samedi 7 mars 2015

NPM not Working


$ sudo apt-get install python g++ make
$ wget http://ift.tt/U7f2jn
$ 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.


Aucun commentaire:

Enregistrer un commentaire