爲什麼我不能簡單地安裝最新的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