VMware + Ubuntu 64 installation node.js V8.9.3__js

Source: Internet
Author: User

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

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.