Nodejs How to upgrade to the latest version n stable

Source: Internet
Author: User

    1. After using Xshell to connect to a Linux server, first enter node- V View the version currently in use

       
    2.   if the version viewed above is low, you can start the upgrade

      Clear npm cache clean--force

       
    3.   also need to install n modules before upgrading, N module is dedicated to manage Nodejs version

      Input NPM install-g n

       
    4.  n module after the installation is complete, enter n-v view version, display, then the Success button. N after the module installation is complete without configuring environment variables and soft connections, you need to take the full path to execute
    5.   If you want to upgrade to a specific version, you can use n 7.1.0 to upgrade  
    6. After the upgrade is complete, enter node-v again to see if the current version has been successfully upgraded to the new version  
    7.   can also be entered directly n stable , upgrade to the latest stable version of Nodejs

Nodejs How to upgrade to the latest version n stable

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.