您的位置:首页 > Web前端 > Node.js

Install Latest Versions NodeJS NPM on ubuntu

2016-04-22 17:26 627 查看
Use NodeSource PPA. For details look at the installation instructions.
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

Alternatively, for Node.js v5:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

P.S.:
curl
package must be installed on server for these code lines.

Upgrading

If you have
nodejs
already installed and want to update, then first remove current instalation and install it again using scripts above.
sudo apt-get remove --purge nodejs npm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: