Install nodejs in ubuntu and how to upgrade it.

Source: Internet
Author: User

Install nodejs in ubuntu and how to upgrade it.

Because I recently planned to study nodejs, I found that there is no installation and update tutorial for nodejs on the Internet.

First, run the following command in the ubuntu command line:

Apt-get install nodejs

Then we need to install npm, which is the version management tool used by nodejs:

Apt-get install nodejs

Next we can look at the version with node-v, if you find that the version is very low (by the end of this blog is v0.12.2), to the official website https://nodejs.org/download/, this page to download Linux Binaries (.tar.gz) version.

Then, use the Administrator permission to replace the above with the default installation directory of apt-get.

For example, in the usr folder.

Run node-v to check that the version has been updated.

The above is all the content shared in this article. I hope you will like it.

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.