node. JS Builds local node environment

Source: Internet
Author: User

First go to the official website to download the installation package, two types of installation, one is source code code source installation, one is compiled binary file installation.

(i) binary file installation

Simply said that after decompression, in the Bin folder already exist node and NPM, if you go into the corresponding file in the execution of the command line a bit of a problem is not, but not the overall, so set this as the global good.

Set Global:

    ln -s /home/kriry/node/bin/node /usr/local/bin/node

    ln -s /home/kriry/node/bin/npm /usr/local/bin/npm

   查看当前安装的Node的版本 

    node -v 

(ii) compiling by source code

This way the file you downloaded is source code. Go to the Unzip directory,

    ./configure 

     make

     make install

(c) Apt-get

There is also a apt-get way of shell hints, sometimes the installation source version is too low. Not recommended



  sudo apt-get install nodejs   sudo apt-get install npm








node. JS Builds local node environment

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.