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