安装最新版本的nodejs到Ubuntu 14.04操作系统
我花了很多时间才理解,所以写下来吧。
Node.js v0.12、io.js和NodeSource Linux仓库
# Note the new setup script name for Node.js v0.12
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
# Then install with:
sudo apt-get install -y nodejs
[2015/11/9]追加
以上是在v0.12版本为最新时的方法。
你可以从https://github.com/nodesource/distributions/tree/master/deb选择任意版本来安装最新的nodejs,然后将其替换为上面的setup_0.12进行尝试。
请点击以下链接详细了解:
https://github.com/nodesource/distributions