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