https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/
Using Launchpad repo by Chris Lea just run following commands
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
node.js install
apt-get install nodejs
Check node.js version
node -v
Outputs
v0.10.20
npm install
Above command should install npm.
Check npm version
npm -v
Outputs
1.4.3
If for some reason, if you see npm is not installed, you may try running:
apt-get install npm
P.S. Do not miss out on our other amazing tutorials. Stay tuned with us. Join us on twitter and facebook for more updates.
Ubuntu下安装Node.js与npm
本文介绍如何在Ubuntu系统中使用Launchpad仓库安装Node.js及npm。通过几个简单的步骤,包括添加软件源、更新包列表、安装Node.js以及验证安装版本等操作,帮助读者快速配置开发环境。
442

被折叠的 条评论
为什么被折叠?



