Install node. js

Source: Internet
Author: User
Tags install node

I'm using the Ubuntu system.

-----------------------------------------I'm a split line------------------------------------------------------------------------

The last two years of the Vue framework fire, although our company does not, but curiosity driven me to study

Need to install node. js before installing the VUE-CLI framework

node. JS installation process:

sudo wget http://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz

Download node from the above code, I installed 6.10.0 Version (of course the best version of the high)

Create a new folder under opt

sudo mkdir node

The next step is to extract node to the node folder under OPT.

sudo tar zxvf node-v6.10.0.tar.gz/opt/node/

Go to Node's directory (/opt/node/node-v6.10.0) and enter

sudo./configure

Input (This step takes a long time when I install)

sudo make

then enter

sudo make install

Once you're done, you can verify with the following code

Node-v   //View node version npm-v     //view NPM version

Of course, it's best to install CNPM

Install node. js

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.