Reproduced in Linux system installation Nodejs the simplest steps

Source: Internet
Author: User

English website: https://nodejs.org/en/download/

English Address: http://nodejs.cn/download/

Through the uname-a command to see my Linux system number of BITS is 64 bits (note: x86_64 represents 64-bit system, i686 i386 represents 32-bit system),

So download the red box file, version v6.10.0

2, download the tar file uploaded to the server and unzip, and then through the establishment of a soft connection into the global;

1) The upload server can be its own arbitrary path, currently my placement path is cd/app/software/

2) Unzip the upload (unzip the file I will change the name to Nodejs, this place own arbitrary, as long as the establishment of a soft connection when the right to write it)

①TAR-XVF NODE-V6.10.0-LINUX-X64.TAR.XZ

②MV node-v6.10.0-linux-x64 Nodejs

③ confirm that the Nodejs Bin directory has node and NPM files, if there is a soft connection, if there is no re-download to perform the top step;

3) Create a soft connection and become a global

①ln-s/app/software/nodejs/bin/npm/usr/local/bin/

②ln-s/app/software/nodejs/bin/node/usr/local/bin/

4) The final step verifies whether the Nodejs has changed to a global

The linux command line NODE-V command will display the Nodejs version for the finished

Reprinted from Https://www.cnblogs.com/liuqi/p/6483317.html

Reproduced in Linux system installation Nodejs the simplest steps

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.