node. js Ubuntu under Installation

Source: Internet
Author: User
Tags install node

Install node. js

Execute the following command in turn:

sudo apt-get update  sudo apt-get install -y python-software-properties python g++ make  sudo add-apt-repository ppa:chris-lea/node.js  sudo apt-get update  sudo apt-get install nodejs 

Note: Starting with node. JS v0.10.0, the node. JS installation package that is available in the Chris Lea repository contains the npm and nodejs-dev .

sudo add-apt-repository ppa:chris-lea/node.jsWhen you execute this instruction, the following prompt will appear asking if you are sure you want to add the PPA above:

[email protected]:~# sudo add-apt-repository ppa:chris-lea/node.js  You are about to add the following PPA to your system:   Evented I/O for V8 javascript. Node‘s goal is to provide an easy way to build scalable network programs More info: https://launchpad.net/~chris-lea/+archive/node.jsPress [ENTER] to continue or ctrl-c to cancel adding it  

Don't bother, just press the 回车 key to ok!

Confirm that the installation is successful

node. JS is installed after the execution of the above series of instructions has been completed. Execute the following command to try the newly installed node. JS Bar:

node -v  

When writing this article, the version of node. JS is v0.10.25, that is, the output is:

v0.10.25  

Confirm that npm the installation is correct, typing the following command:

npm -v  

The output is:

1.3.24  

As shown in the following:

node. js Ubuntu under Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.