Ubuntu 16.10 installs node. js

Source: Internet
Author: User

Steps:

1. Login website https://nodejs.org find the Big Green download button in the middle of the page, right click, copy file download connection, similar to: https://nodejs.org/dist/v6.10.2/ Node-v6.10.2-linux-x64.tar.xz

2. Download the file using wget wget-c https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz

3. Unzip. First Use xz-k-D node-v6.10.2-linux-x64.tar.xz to extract into Xxx.tar

Then use the tar xvf Xxx.tar to unpack the package.

4. Move the extracted folder to any place (e.g. ~/thisnode/): sudo mv node-v6.10.2-linux-x64 ~/thisnode

5. Create a soft link: sudo ln-s ~/thisnode/node-v6.10.2-linux-x64/bin/node/usr/local/bin/node

sudo ln-s ~/thisnode/node-v6.10.2-linux-x64/bin/npm/usr/local/bin/npm

6. Check installation: sudo node-v results should show version number v6.10.2, success.

Resources:

https://my.oschina.net/blogshi/blog/260953

Https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

Note: The following two commands may install the wrong package.

sudo apt-get install Nodejs

sudo apt-get install NPM

Ubuntu 16.10 installs 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.