First use of the virtual machine, the first use of Linux system, the first time to install the use of Node.js
Virtual machine Installation Needless to say, installed after the download Ubuntu 64-bit version of the file
Click on "Create New virtual Machine" in VM, select download ubuntu iso file, will load the system directly.
In the Ubuntu interface in the virtual machine, ctrl+alt+t the command line interface
Download Node.js version (note directory address before downloading): wget https://nodejs.org/dist/v8.9.3/node-v8.9.3-linux-x64.tar.xz
Decompression: TAR-XF NODE-V8.9.3-LINUX-X64.TAR.XZ
Set environment variable (note Replace ' Node.js extract file root "for real address):
Ln-s/node.js Extract File root directory/bin/node/usr/local/bin/node
ln-s/node.js Extract File root directory/bin/npm/usr/local/bin/npm
run node-v or npm-v to see if the installation is successful
PS: Because it is the first installation, so has been looking for information on the Internet, the results are not installed, the results found that the installation of information on the network are a few years ago version, And now the Node.js installation is completely different, now node.js only need decompression, configure the environment variable on OK, convenient a lot of