Skip to main content

Node Update on Windows/Linux

Free2016-04-12#Node#Solution#node stable#node latest#node lts#node version number#node版本号是什么意思#node v4.x与v5.x#node v0.x与v4.x

How to choose node version, how to update current node version

##I. About Node Version Numbers

Known as Version Emperor in the community, release as follows:

latest/                                            05-Apr-2016 23:31                   -
latest-argon/                                      01-Apr-2016 01:39                   -
latest-v0.10.x/                                    01-Apr-2016 04:31                   -
latest-v0.12.x/                                    01-Apr-2016 00:10                   -
latest-v4.x/                                       01-Apr-2016 01:39                   -
latest-v5.x/                                       05-Apr-2016 23:31                   -

Because when node was at v0.x, another branch appeared: io.js, its version number started from v1.0.0 and later updated to v4.x, while node itself was at v0.12.x, then the merger of itself and io.js produced v4.0, after a period of updates, the codename argon LTS (Long-term Support) was launched, i.e., v4.x, some adventurous new features couldn't be put in LTS, but new feature development had to continue, so v5.x appeared, i.e., Stable

So:

latest/         Indicates latest Stable release, newer than LTS, not recommended for production use
latest-argon/   Indicates LTS with codename argon, can be used in production
latest-v0.10.x/ Historical trace, even stable, odd unstable
latest-v0.12.x/ Same as above
latest-v4.x/    Various versions after merger
latest-v5.x/    Stable, newer than LTS, not recommended for production use

LTS indicates Long-term Support version, focuses more on stability and security, suitable for production use. As for Stable, actually not as stable as the name suggests, evolves into LTS after 6 months, then LTS warranty period is 30 months. As for Nightly version... what use is there

P.S. For more information about Node versions, please check nodejs/node

##II. Update Node on Windows

Installing Node on windows generally choose Windows Installer (.msi) or Windows Binary (.exe), update method is overwrite installation: directly download target version's msi or exe, overwrite install in original installation directory

##III. Update Node on Linux

Generally choose to manually compile source code installation on linux, npm has open source module providing version management tool: n, first install globally (npm install -g n), then directly:

n lts

Can install latest LTS, but I encountered strange error today, finally directly installed Stable, other possibly useful commands as follows:

n latest #Install latest version
n stable #Install latest stable version
n #View various versions installed via n
n rm 0.9.4 #Remove 0.9.4 version

###Reference Materials

Comments

No comments yet. Be the first to share your thoughts.

Leave a comment