简体   繁体   中英

Node not getting installed in Ubuntu 14.04

nvm version -> 0.29.0. Then installed libkrb5-dev and npm. npm --version -> 1.3.10

nodejs -v is showing v0.10.25, which is very old in /usr/bin But 'node' is not installed.

Need to install Node 4. Being new to node, any help appreciated.

Where does whereis node tell you Ubuntu is looking for Node?

I'm not sure if this exists on Ubuntu, but on OS X there's a file called /etc/paths which sets the precedence of where binaries are loaded from.

I'm going to guess that you've installed Node to /usr/local/bin so it might be a case of moving this to the top of that file and restarting.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM