• home > webfront > ECMAS > npm-node >

    nodejs v4.4.2 LTS和 v5.10.1 Stable 有什么区别?

    Author:[email protected] Date:

    同事想升级nodejs,然后问我,nodejs v4 4 2 LTS和 v5 10 1 Stable 有什么区别? 一下子还真回答不出来,懵了…翻一下官方文档给小白…就像jquery,到了1 9后,分了2个版本(不过,俺到1 8也就么有使用了,后面也是用zepto了……

    同事想升级nodejs,然后问我,nodejs v4.4.2 LTS和 v5.10.1 Stable 有什么区别?


    然后看了下官方文档: https://nodejs.org/en/blog/community/node-v5/


    LTS版本支持之前的一些老版本特性,可以让你 丝滑 升级!

    stable 是指新版本不是beta版本了,但是,这个是new 万一,


    所以,官网也recommend LTS

    Node.js is growing, and growing fast. As we continue to innovate quickly, we will focus on two different release lines. One release line will fall under our LTS plan. All release lines that have LTS support will be even numbers, and (most importantly) focus on stability and security. These release lines are for organizations with complex environments that find it cumbersome to continually upgrade. We recently released the first in this line: Node.js v4.2.1 “Argon.”

    The other release line is called Stable. All release lines will be odd numbers, and have a shorter lifespan and more frequent updates to the code. The Stable release line will focus on active development of necessary features and refinement of existing APIs. Node.js version 5 is this type of release.

    We want to make sure that you are adopting the release that best meets your Node.js needs, so to break it down:

    Stay on or upgrade to Node.js v4.2.x if you need stability and have a complex production environment, e.g. you are a medium or large enterprise.

    Upgrade to Node.js v5.x if you have the ability to upgrade versions quickly and easily without disturbing your environment.

    Now that you have the very basics, let’s take a deeper look at the new features and characteristics of v5, and the benefits and details of our LTS plan.


    转载本站文章《nodejs v4.4.2 LTS和 v5.10.1 Stable 有什么区别?》,