本地环境Ubuntu16.04
当前node版本4.2.6
官方的最新node版本是6.10.0
在终端如何更新为最新稳定版
天蓬老师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
🎜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.
迷茫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.