search

Home  >  Q&A  >  body text

node.js - 如何把node更新到最新的稳定版本

本地环境Ubuntu16.04

当前node版本4.2.6

官方的最新node版本是6.10.0

在终端如何更新为最新稳定版

阿神阿神2875 days ago520

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 16:14:06

    It is recommended to install n first, and then use n to upgrade node to the latest stable version

    $ npm install -g n$ npm install -g n

    $ n stable

    $ n stable🎜

    reply
    0
  • PHPz

    PHPz2017-04-17 16:14:06

    On the three major platforms, you can use n or nvm to upgrade node.
    But many times, it will be unsatisfactory. At this time, you can use mirror.
    Of course, based on my previous experience, downloading directly would be an additional option if the command line does not work well.
    For details, please refer to: NodeJs upgrade/installation notes.

    reply
    0
  • 迷茫

    迷茫2017-04-17 16:14:06

    You can use n or nvm. Both can manage node versions, and the specific usage methods can be found by searching.

    reply
    0
  • Cancelreply