Linux Installation Node

Source: Internet
Author: User

Install node on Linux and use Linux to compile the best version.

1, enter the website of node, find the Linux version download, here we right-click Copy.

2. On Linux, use the command Curl-o node.tar.gz https://nodejs.org/dist/v6.2.0/node-v6.2.0-linux-x64.tar.gz to download the tar package to the current directory

3. Unzip the TAR package with the tar command: TAR-ZXVF node.tar.gz

4. The bin directory in the extracted directory has the compiled node and NPM commands, and we need to add them to the global command

5. Use the LN command to link the node and NPM commands to the global-bin directory:

Ln-s/home/node-v6.2.0-linux-x64/bin/node/usr/local/bin/node

Ln-s/HOME/NODE-V6.2.0-LINUX-X64/BIN/NPM/USR/LOCAL/BIN/NPM

We can also delete commands from the global, such as: Rm/usr/local/bin/node. When you need to re-create the link after moving the path to the source file, delete the link that you created first.

6. Start using node

Linux Installation Node

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.