How to install Nodejs and upgrade under Ubuntu

Source: Internet
Author: User

This article describes the Ubuntu 12.04 Server installation Nodejs as well as the upgrade method, Ubuntu installation Nodejs, and the upgraded instance tutorials, need a friend reference under.

Because of the recent intention to study the next Nodejs, the results found that there is no suitable for first in the Nodejs installation and update tutorials

Start at the command line of Ubuntu:

?

1 Apt-get Install Nodejs

Then we need to install NPM, which is the version management tool for Nodejs:

?

1 Apt-get Install Nodejs

Then we use NODE-V can look at the version, if found that the version is very low (up to this blog is v0.12.2), to the official website https://nodejs.org/download/, this page download Linux Binaries (. tar.gz) Version of the compressed package.

Then replace the contents with admin privileges with the default installation directory of Apt-get.

such as the USR folder.

Then execute node-v will find that the version has been updated.

The above is the article to share all the content, I hope you can enjoy.

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.