为什么我不能简单地安装最新的nodejs。 我执行了curl -sL https://deb.nodesource.com/setup_7.x |须藤-E庆典 - 之后,我执行以下在Ubuntu 14.04上遵循最新nodejs的安装步骤有什么问题?
[email protected]:/$ sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 188 not upgraded.
[email protected]:~$ which node
[email protected]:~$ which nodejs
[email protected]:~$ whereis node
node:
[email protected]:~$ whereis nodejs
nodejs:
[email protected]:/$ node -v
The program 'node' can be found in the following packages:
* node
* nodejs-legacy
OS是Ubuntu的14.04
您是否尝试过运行'这nodejs'。我遇到了与Vagrant配置类似的问题,解决方案是将'/ usr/bin /'中存在的'nodejs'软件包链接到同一目录中的'node'。尝试了 – ddnomad