[英]Node not getting installed in Ubuntu 14.04
nvm version -> 0.29.0. nvm版本-> 0.29.0。 Then installed libkrb5-dev and npm. 然后安装libkrb5-dev和npm。 npm --version -> 1.3.10 npm --version-> 1.3.10
nodejs -v is showing v0.10.25, which is very old in /usr/bin But 'node' is not installed. nodejs -v显示v0.10.25,它在/ usr / bin中非常旧,但未安装'node'。
Need to install Node 4. Being new to node, any help appreciated. 需要安装Node4。对于Node来说是新手,不胜感激。
Where does whereis node
tell you Ubuntu is looking for Node? whereis node
在哪里告诉您Ubuntu正在寻找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. 我不确定Ubuntu上是否存在此文件,但是在OS X上有一个名为/etc/paths
的文件,该文件设置从中加载二进制文件的优先级。
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. 我猜想您已经将Node安装到/usr/local/bin
因此可能是将其移至该文件顶部并重新启动的情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.