Installation of node. js on Ubuntu and on Windows

Source: Internet
Author: User
Tags install node

Install Node.jsNode.js source installation on Ubuntu

The following section describes the installation of node. js under Ubuntu Linux. Other Linux systems, such as CentOS, are similar to the following installation steps.

Get the node. JS source code on Github:

$ sudo git clone https://github.com/nodejs/node.gitCloning into ' node ' ...

  

Modify Directory Permissions:

$ sudo chmod-r 755 node

  

Use ./configure to create the compiled file and follow:

$ cd node$ sudo./configure$ sudo make$ sudo make install

  

To view the node version:

$ node--versionv0.10.25

  

Ubuntu apt-get Command Installation

The command format is as follows:

sudo apt-get install nodejssudo apt-get install NPM

  

Windows binary file (. exe) installation

32-bit installation package: Http://nodejs.org/dist/v0.10.26/node.exe

64-bit installation package: Http://nodejs.org/dist/v0.10.26/x64/node.exe

Clicking the Run button will show the command-line window:

Version test

Enter the directory where the Node.exe is located, as follows:

If you get the above output, you have successfully installed node. js.

Windows installation package (. msi)

32-bit installation package: Https://nodejs.org/dist/v4.4.3/node-v4.4.3-x86.msi

64-bit installation package: Https://nodejs.org/dist/v4.4.3/node-v4.4.3-x64.msi

For example, in the v0.10.26 version of this article, the other versions are similar, installation steps:

Step 1: Double-click the downloaded installation package v0.10.26as follows:

Step 2: Click on the run above, the following screen will appear:

Step 3: Tick the Accept Agreement option and click the Next button:

Step 4:node.js The default installation directory is "C:\Program files\nodejs\", you can modify the directory and click Next:

Step 5: Click the tree icon to select the installation mode you want, then click Next Step Next (next)

Step 6: Click Install to start installing node. js. You can also click Back to modify the previous configuration. And then click Next (Next):

Installation of node. js on Ubuntu and on Windows

Related Article

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.