{"id":10006060,"date":"2022-07-31T03:54:38","date_gmt":"2022-07-30T19:54:38","guid":{"rendered":"https:\/\/ityet.com\/?p=10006060"},"modified":"2022-07-31T03:54:38","modified_gmt":"2022-07-30T19:54:38","slug":"3-%e5%88%86%e9%92%9f%e6%8e%8c%e6%8f%a1-node-js-%e7%89%88%e6%9c%ac%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006060","title":{"rendered":"3 \u5206\u949f\u638c\u63e1 Node.js \u7248\u672c\u7684\u533a\u522b"},"content":{"rendered":"<p><a href=\"https:\/\/link.segmentfault.com\/?enc=1nz42MGW%2BalUW7Rzf692ag%3D%3D.KDTaLAaw6Lxd4XZi9eKW5wpfEG%2FNp5bfvOiqrqVntbk%3D\" rel=\"nofollow\">Node.js <\/a>\u662f\u4e00\u4e2a\u57fa\u4e8e<a href=\"https:\/\/link.segmentfault.com\/?enc=iCfIiBwYOShBE3USMq%2FIqw%3D%3D.ZJE3BQ%2B9KkA2OfE7rB%2FxXA%3D%3D\" rel=\"nofollow\"> Chrome V8<\/a> \u5f15\u64ce\u7684 JavaScript \u8fd0\u884c\u65f6\u73af\u5883\u3002<br \/>\u5728\u6211\u4eec\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0cNode.js \u4f7f\u7528\u573a\u666f\u8d8a\u6765\u8d8a\u591a\uff0c\u5927\u5230\u670d\u52a1\u7aef\u9879\u76ee\uff0c\u5c0f\u5230\u5f00\u53d1\u5de5\u5177\u811a\u672c\uff0c\u6240\u4ee5\u638c\u63e1 Node.js \u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\u662f\u975e\u5e38\u6709\u5fc5\u8981\u7684\u3002<br \/>\u4eca\u5929\u4e3b\u8981\u804a\u4e00\u4e0b Node.js \u4e2d LTS \u548c Current \u7684\u533a\u522b\u548c\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3002<\/p>\n<h2>\u4e00\u3001\u7248\u672c\u4ecb\u7ecd<\/h2>\n<p>\u5728\u5b98\u7f51\u4e0a\u53ef\u4ee5\u770b\u5230 Node.js \u6709 LTS \u7cfb\u5217\u548c Current \u7cfb\u5217\uff0c\u5206\u522b\u5bf9\u5e94\u4e0d\u540c\u7684\u6700\u65b0\u7248\u672c\u53f7\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042246600\" alt=\"nodejs\" title=\"nodejs\" loading=\"lazy\"><br \/>\uff08\u672c\u56fe\u6765\u81ea\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=yzATXMIjOI9mVU8UU%2FRGEA%3D%3D.%2FILwP72Et9Sk7AUpqXicD3OKxRIWLs5mtVCA%2B1RHAA4%3D\" rel=\"nofollow\">Nodejs<\/a>\uff09<\/p>\n<p>Node.js \u7684\u7248\u672c\u53f7\u547d\u540d\u9075\u5faa<a href=\"https:\/\/link.segmentfault.com\/?enc=arqMp2HUAHox%2F21Yd9MTKg%3D%3D.VAVK1e2GURdW%2FDP1R%2Ffe4ytCMuSqg%2FTOU08THh%2FQWZs%3D\" rel=\"nofollow\">\u8bed\u4e49\u5316\u7248\u672c<\/a>\uff08Semantic Versioning\uff09\uff0c\u7edf\u4e00\u7248\u672c\u53f7\u8868\u793a\u89c4\u5219\uff0c\u8be5\u89c4\u5219\u89c4\u5b9a\u4e86\u7248\u672c\u53f7\u5982\u4f55\u8868\u793a\uff0c\u5982\u4f55\u589e\u52a0\uff0c\u5982\u4f55\u8fdb\u884c\u6bd4\u8f83\uff0c\u4e0d\u540c\u7684\u7248\u672c\u53f7\u610f\u5473\u7740\u4ec0\u4e48\u3002<\/p>\n<p>\u7248\u672c\u683c\u5f0f\uff1a<code>\u4e3b\u7248\u672c\u53f7.\u6b21\u7248\u672c\u53f7.\u4fee\u8ba2\u53f7<\/code><\/p>\n<ul>\n<li>\u4e3b\u7248\u672c\u53f7(major)\uff1a\u5f53\u4f60\u505a\u4e86\u4e0d\u517c\u5bb9\u7684 API \u4fee\u6539\uff0c<\/li>\n<li>\u6b21\u7248\u672c\u53f7(minor)\uff1a\u5f53\u4f60\u505a\u4e86\u5411\u4e0b\u517c\u5bb9\u7684\u529f\u80fd\u6027\u65b0\u589e\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aFeature\u7248\u672c\uff0c<\/li>\n<li>\u4fee\u8ba2\u53f7(patch)\uff1a\u5f53\u4f60\u505a\u4e86\u5411\u4e0b\u517c\u5bb9\u7684\u95ee\u9898\u4fee\u6b63\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aBug fix\u7248\u672c\u3002<\/li>\n<\/ul>\n<h2>\u4e8c\u3001LTS \u7248\u672c<\/h2>\n<p>LTS \u7248\u672c\u5168\u79f0 <strong>Long Time Support<\/strong>\uff0c\u5373<strong>\u957f\u671f\u652f\u6301\u7248\u672c<\/strong>\uff0c\u91cd\u70b9\u5728\u4e8e\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\uff0c\u6bcf\u4e2a LTS \u7248\u672c\u7684\u5927\u7248\u672c\u53f7\u90fd\u662f<strong>\u5076\u6570<\/strong>\uff0c\u5efa\u8bae\u9996\u6b21\u4e0b\u8f7d\u4ee5\u53ca\u540e\u7eed\u7684\u6bcf\u6b21\u5347\u7ea7\u90fd\u9009\u62e9 LTS \u7248\u672c\uff0c\u51cf\u5c11\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u672a\u77e5\u95ee\u9898\u3002<br \/>LTS \u7248\u672c\u6709 3 \u4e2a\u9636\u6bb5\u7684\u751f\u547d\u5468\u671f\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>\u751f\u547d\u5468\u671f<\/strong><\/th>\n<th><strong>\u542b\u4e49<\/strong><\/th>\n<th><strong>\u8bf4\u660e<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Active<\/td>\n<td>\u6d3b\u8dc3\u9636\u6bb5<\/td>\n<td>\u6bcf\u4e2a\u4ece Current \u8fdb\u5165 LTS \u7684\u5076\u6570\u7248\u672c\uff0c\u90fd\u4f1a\u6709 18 \u4e2a\u6708\u7684\u65f6\u95f4\u88ab\u79ef\u6781\u7ef4\u62a4\u548c\u5347\u7ea7\u3002<\/td>\n<\/tr>\n<tr>\n<td>Maintenance<\/td>\n<td>\u7ef4\u62a4\u9636\u6bb5<\/td>\n<td>\u6d3b\u8dc3\u9636\u6bb5\u8fbe\u5230 18 \u4e2a\u6708\u540e\uff0c\u4f1a\u8fdb\u5165\u4e3a\u671f 12 \u4e2a\u6708\u7684\u7ef4\u62a4\u9636\u6bb5\uff0c\u671f\u95f4\u53ea\u4f1a\u8fdb\u884c\u9519\u8bef\u4fee\u590d\u548c\u5b89\u5168\u8865\u4e01\u3002<\/td>\n<\/tr>\n<tr>\n<td>End of Life<\/td>\n<td>\u7ed3\u675f\u9636\u6bb5<\/td>\n<td>\u7b80\u79f0 EOL \uff0c\u5728\u7ef4\u62a4\u9636\u6bb5\u8fbe\u5230\u671f\u9650\u4e4b\u540e\uff0c\u8be5\u7248\u672c\u8fdb\u5165 EOL \u9636\u6bb5\uff0c\u5c06\u4e0d\u518d\u7ef4\u62a4\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u6bcf\u4e2a LTS \u7248\u672c\u6700\u957f\u4f1a\u6709 30 \u4e2a\u6708\u7684\u7ef4\u62a4\u65f6\u95f4\uff0c\u4e4b\u540e\u5c06\u4e0d\u518d\u8fdb\u884c\u7ef4\u62a4\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7248\u672c\u7684\u751f\u547d\u5468\u671f\u56fe\uff082022-2025\uff09\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042246601\" alt=\"nodejs\" title=\"nodejs\" loading=\"lazy\"><br \/>\uff08\u56fe\u7247\u6765\u81ea\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=3Iu6GwjoOocX8oHUFzyG%2FA%3D%3D.0C3d%2FlI7B1cojob7DEXmUSxZ2MtLWk%2BNQyR8HzbCaO8KhOeuaoQA6uouaVGQz75L\" rel=\"nofollow\">Node.js<\/a>\uff09<\/p>\n<h2>\u4e09\u3001Current \u7248\u672c<\/h2>\n<p>Current \u5373\u6700\u65b0\u53d1\u5e03\u7248\u672c\uff0c\u8be5\u7248\u672c\u4e13\u6ce8\u4e8e\u5fc5\u8981\u529f\u80fd\u7684\u5f00\u53d1\u548c\u73b0\u6709 API \u7684\u5b8c\u5584\uff0c\u5177\u6709\u8f83\u77ed\u7684\u5bff\u547d\u548c\u66f4\u9891\u7e41\u7684\u4ee3\u7801\u66f4\u65b0\u3002<br \/>\u4f60\u53ef\u4ee5\u5728\u8be5\u7248\u672c\u4f53\u9a8c\u5230\u6700\u65b0\u529f\u80fd\uff0c\u4e5f\u53ef\u4ee5\u80fd\u9047\u5230\u5404\u79cd\u610f\u60f3\u4e0d\u5230\u7684\u95ee\u9898\u548c\u517c\u5bb9\u6027\u8981\u5904\u7406\u3002<br \/>\u901a\u5e38 Current \u7248\u672c\u4f1a\u5728\u6bcf 6 \u4e2a\u6708\u53d1\u5e03\u4e00\u6b21\u5927\u7248\u672c\uff08\u7279\u6b8a\u60c5\u51b5\u9664\u5916\uff09\uff1a<\/p>\n<ul>\n<li>\u6bcf\u5e74 4 \u6708\u4efd\u53d1\u5e03\u65b0\u7684\u5076\u6570\u7248\u672c\uff1b<\/li>\n<li>\u6bcf\u5e74 10 \u6708\u4efd\u53d1\u5e03\u65b0\u7684\u5947\u6570\u7248\u672c\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042246602\" alt=\"nodejs releases\" title=\"nodejs releases\" loading=\"lazy\"><br \/>\uff08\u56fe\u7247\u6765\u81ea\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=xVQOuvZwhzivL5Qu%2FBioYQ%3D%3D.iQXc7pL9b9n%2Fri7PSwQYzbkyRf2zW3WmQ5koJc%2BjXjQjJZ12N0KJljb0q3VTbfqx\" rel=\"nofollow\">Node.js releases<\/a>\uff09<\/p>\n<p>\u8be6\u7ec6\u7684\u7248\u672c\u66f4\u65b0\u8bb0\u5f55\uff0c\u53ef\u4ee5\u67e5\u770b<a href=\"https:\/\/link.segmentfault.com\/?enc=7XALep7rV1RjTpDKGo1k3g%3D%3D.dTeM8obfQBqAmxczSBBWZvyAUo1Dk4NSL8lQF4DD4%2F0bnaRI8MCM4oMevCPJzx7V\" rel=\"nofollow\">Node.js releases<\/a>\u3002<\/p>\n<h2>\u56db\u3001\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\uff1f<\/h2>\n<ul>\n<li>\u4f7f\u7528 <strong>LTS<\/strong> \u7248\u672c<\/li>\n<\/ul>\n<p>\u4e00\u822c\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u91cd\u70b9\u5728\u4e8e\u7a33\u5b9a\uff0c\u5982\u679c\u4f60\u9700\u8981\u7a33\u5b9a\u6027\u5e76\u62e5\u6709\u590d\u6742\u7684\u751f\u4ea7\u73af\u5883\uff08\u4f8b\u5982\u4e2d\u578b\u6216\u5927\u578b\u4f01\u4e1a\uff09\uff0c\u5efa\u8bae\u4f7f\u7528 <strong>LTS<\/strong> \u7248\u672c\u3002<\/p>\n<ul>\n<li>\u4f7f\u7528 <strong>Current<\/strong> \u7248\u672c<\/li>\n<\/ul>\n<p>\u4e00\u822c\u7528\u4e8e\u6d4b\u8bd5\u73af\u5883\uff0c\u5982\u679c\u4f60\u662f\u4e3a\u4e86\u5c1d\u8bd5\u65b0\u7684\u7248\u672c\u548c\u65b0\u7279\u6027\uff08\u6bd4\u5982 ECMAScript \u65b0\u7279\u6027\uff09\uff0c\u6216\u8005\u80fd\u591f\u5728\u4e0d\u5e72\u6270\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u5feb\u901f\u8f7b\u677e\u5730\u5347\u7ea7\u7248\u672c\uff0c\u5efa\u8bae\u4f7f\u7528 <strong>Current<\/strong> \u7248\u672c\u3002<\/p>\n<h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u4e3b\u8981\u804a\u4e00\u4e0b Node.js \u4e2d LTS \u548c Current \u7684\u533a\u522b\u548c\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\uff0c\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u5e76\u4e0d\u9700\u8981\u53ca\u65f6\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\uff0c\u6211\u4eec\u5b8c\u5168\u53ef\u4ee5\u6309\u7167\u9879\u76ee\u6280\u672f\u6808\u4f9d\u8d56\u7684\u6700\u4f4e Node.js \u7248\u672c\u51b3\u5b9a\u662f\u5426\u5347\u7ea7\uff0c\u5982\u679c\u6761\u4ef6\u5141\u8bb8\uff0c\u8fd8\u662f\u5efa\u8bae\u81f3\u5c11\u628a\u5927\u7248\u672c\u5347\u7ea7\u5230\u6700\u65b0\u7684 LTS \u7248\u672c\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042246598\">https:\/\/segmentfault.com\/a\/1190000042246598<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js \u662f\u4e00\u4e2a\u57fa\u4e8e Chrome V8 \u5f15\u64ce\u7684 JavaScript \u8fd0\u884c\u65f6\u73af\u5883\u3002\u5728\u6211\u4eec\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0cN [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006060","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006060"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006060\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}