Node There are LTS version and Current version. What is the difference between these two versions? The following article will help you quickly understand the differences between Node.js versions, and talk about how to choose the appropriate version. I hope it will be helpful to you!
Node.js is a JavaScript runtime environment based on the Chrome V8 engine.
In our daily development, Node.js is used in more and more scenarios, ranging from server-side projects to development tool scripts, so it is very necessary to master some basic knowledge of Node.js.
Today we will mainly talk about the difference between LTS and Current in Node.js and how to choose the appropriate version.
You can see on the official website that Node.js has LTS series and Current series, which correspond to different latest version numbers.
The version number naming of Nodejs follows Semantic Versioning (Semantic Versioning), and the unified version number representation rules. This rule specifies how version numbers are represented, how they are incremented, how they are compared, and what different version numbers mean.
Version format: Major version number.Minor version number.Revision number
The full name of LTS version is Long Time Support, which is Long Time Support Version, the key point For stability and security, the major version number of each LTS version is an even number. It is recommended to select the LTS version for the first download and every subsequent upgrade to reduce unknown problems during the development process.
LTS versions have a 3-stage life cycle:
Life cycle | Meaning | Description |
---|---|---|
Active phase | Each entry from Current Even-numbered versions of LTS are actively maintained and upgraded for 18 months. | |
Maintenance Phase | After the active phase reaches 18 months, it will enter a 12-month maintenance phase, during which only errors will be made Fixes and security patches. | |
End phase | referred to as EOL. After the maintenance phase reaches the expiry date, the version enters the EOL phase and will no longer be maintained. In other words, each LTS version will have a maximum maintenance period of 30 months, after which there will be no maintenance. |
The above is the detailed content of What are the differences between Node.js versions? How to choose the right version?. For more information, please follow other related articles on the PHP Chinese website!