Latest node.js & npm installation on Ubuntu 12.04
来源:互联网 发布:js树形菜单 编辑:程序博客网 时间:2024/06/18 07:40
转自:https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/
Compiling is way to go for many but I am mostly in hurry so following works for me!
Adding Chris Lea’s Repo
Using Launchpad repo by Chris Lea just run following commands
apt-get install python-software-propertiesapt-add-repository ppa:chris-lea/node.jsapt-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
(updated on 20 Feb 2014. After this comment from dodyrw
21 Comments
0 0
- Latest node.js & npm installation on Ubuntu 12.04
- ubuntu node.js npm
- web Update node.js & npm on Mac
- Ubuntu安装node.js及npm
- ubuntu deepin安装node.js和npm
- ubuntu安装Node.js和npm
- Upgrading Gradle to the latest version on Ubuntu(http://wtanaka.com/node/8079)
- Node.js installation with nvm on Raspberry pi
- How to Install the Latest Nvidia Driver on Ubuntu 12.04
- How to Install the Latest Nvidia Driver on Ubuntu 12.04
- Node.js + NPM + Ubuntu10
- Node.js+npm安装
- Node.js npm
- node.js npm常用命令
- Node.js npm
- Node.js+npm安装
- Node.js npm 详解
- Node.js npm cheerio
- 各种排序方法
- 8051 Code Banking
- Selenium入门(一)安装、配置与第一条代码
- idl number to string
- cocos2d-x 网络请求
- Latest node.js & npm installation on Ubuntu 12.04
- 面试-数据库约束
- eclipse maven 插件安装 for mac,linux,window
- 64位WIN7环境下搭建Ubuntu和Hadoop平台(上)
- python处理XML文件
- Win 8 系统下 JBoss AS 7 Final 的下载配置与使用——Windows J2EE开发安装序列之五
- Linux主机路由问题---没有下行路由,上行报文也不转发
- Java性能优化系列之五--JavaIO
- 代码静态检查工具汇总
Perfect, Thank you this was very helpful. I needed to install the latest node.js & npm to use the new ghost blogging platform.
Glad to know that it helped. I wrote this while installinghttps://github.com/fzaninotto/uptime (another good node.js project)
Followed your instructions, but I got the following error when trying to install npm:
user@system:~$ sudo apt-get install npm
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: nodejs-dev
Depends: node-request but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-minimatch but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-ini but it is not going to be installed
Depends: node-graceful-fs but it is not going to be installed
Depends: node-abbrev but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-fstream but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-tar but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Could it be my version of nodejs?
user@system:~$ node -v
v0.10.25