{"id":8910,"date":"2024-09-12T12:47:48","date_gmt":"2024-09-12T04:47:48","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=8910"},"modified":"2024-09-12T12:47:48","modified_gmt":"2024-09-12T04:47:48","slug":"%e4%ba%91%e5%8e%9f%e7%94%9fnpm%e5%bc%95%e9%a2%86%ef%bc%9a%e8%bd%af%e4%bb%b6%e5%8c%85%e7%ae%a1%e7%90%86%e7%9a%84%e5%88%9b%e6%96%b0%e8%b6%8b%e5%8a%bf","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/8910.html","title":{"rendered":"\u4e91\u539f\u751fNPM\u5f15\u9886\uff1a\u8f6f\u4ef6\u5305\u7ba1\u7406\u7684\u521b\u65b0\u8d8b\u52bf"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n\n<p style=\"text-align: center;\"><img decoding=\"async\" src=\"https:\/\/www.yunshan.net\/blog\/wp-content\/uploads\/2024\/09\/787e4J25E6.jpg\" \/><\/p>\n\n<\/p>\n\n\n\n<p>\u3000\u3000<a href=\"https:\/\/www.yunshan.net\" target=\"_blank\" style=\"color:blue\" rel=\"noopener noreferrer\">\u4e91\u539f\u751fNPM<\/a>\u5f15\u9886\uff1a\u8f6f\u4ef6\u5305\u7ba1\u7406\u7684\u521b\u65b0\u8d8b\u52bf<\/p>\n\n\n\n\n<p>\u3000\u3000<strong>\u524d\u8a00<\/strong><\/p>\n\n\n\n\n<p>\u3000\u3000\u5728\u5f53\u4eca\u6570\u5b57\u5316\u9ad8\u901f\u53d1\u5c55\u7684\u65f6\u4ee3\uff0c\u8f6f\u4ef6\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u65b9\u5f0f\u6b63\u5728\u7ecf\u5386\u7740\u4e00\u573a\u6df1\u523b\u7684\u53d8\u9769\u3002\u4e91\u539f\u751f\u6280\u672f\u7684\u5d1b\u8d77\uff0c\u4e3a\u4f01\u4e1a\u5e26\u6765\u4e86\u66f4\u9ad8\u7684\u7075\u6d3b\u6027\u3001\u53ef\u6269\u5c55\u6027\u548c\u6548\u7387\u3002\u800c\u5728\u4e91\u539f\u751f\u7684\u751f\u6001\u7cfb\u7edf\u4e2d\uff0c\u8f6f\u4ef6\u5305\u7ba1\u7406\u6210\u4e3a\u4e86\u5173\u952e\u7684\u4e00\u73af\u3002\u5176\u4e2d\uff0c<a href=\"https:\/\/www.yunshan.net\" target=\"_blank\" style=\"color:blue\" rel=\"noopener noreferrer\">\u4e91\u539f\u751fNPM<\/a>\uff08NodePackageManager\uff09\u4ee5\u5176\u72ec\u7279\u7684\u521b\u65b0\u4f18\u52bf\uff0c\u5f15\u9886\u7740\u8f6f\u4ef6\u5305\u7ba1\u7406\u7684\u65b0\u8d8b\u52bf\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8<a href=\"https:\/\/www.yunshan.net\" target=\"_blank\" style=\"color:blue\" rel=\"noopener noreferrer\">\u4e91\u539f\u751fNPM<\/a>\u5728\u8f6f\u4ef6\u5305\u7ba1\u7406\u9886\u57df\u7684\u521b\u65b0\u4e4b\u5904\uff0c\u4ee5\u53ca\u5b83\u5982\u4f55\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u5e26\u6765\u4ef7\u503c\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000<strong>\u4e00\u3001\u4e91\u539f\u751fNPM\u7684\u6982\u8ff0<\/strong><\/p>\n\n\n\n\n<p>\u3000\u3000NPM\u4f5c\u4e3aNode.js\u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5df2\u7ecf\u5728\u524d\u7aef\u548c\u540e\u7aef\u5f00\u53d1\u4e2d\u5e7f\u6cdb\u5e94\u7528\u3002\u7136\u800c\uff0c\u968f\u7740\u4e91\u539f\u751f\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4f20\u7edf\u7684NPM\u4e5f\u5728\u4e0d\u65ad\u6f14\u8fdb\uff0c\u4ee5\u9002\u5e94\u4e91\u539f\u751f\u73af\u5883\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000\u4e91\u539f\u751fNPM\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u7684\u5305\u5b58\u50a8\u548c\u5206\u53d1\uff0c\u5b83\u66f4\u662f\u4e00\u4e2a\u96c6\u6210\u4e86\u7248\u672c\u63a7\u5236\u3001\u4f9d\u8d56\u7ba1\u7406\u3001\u5b89\u5168\u626b\u63cf\u7b49\u591a\u79cd\u529f\u80fd\u7684\u7efc\u5408\u6027\u5e73\u53f0\u3002\u5b83\u80fd\u591f\u4e0e\u4e91\u539f\u751f\u7684\u57fa\u7840\u8bbe\u65bd\u548c\u5de5\u5177\u94fe\u65e0\u7f1d\u96c6\u6210\uff0c\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u66f4\u52a0\u4fbf\u6377\u3001\u9ad8\u6548\u548c\u53ef\u9760\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u4f53\u9a8c\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000<strong>\u4e8c\u3001\u4e91\u539f\u751fNPM\u7684\u521b\u65b0\u7279\u70b9<\/strong><\/p>\n\n\n\n\n<ol>\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u9ad8\u6548\u7684\u4f9d\u8d56\u7ba1\u7406<\/strong>\n\u5728\u4e91\u539f\u751f\u73af\u5883\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u7531\u591a\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\uff0c\u6bcf\u4e2a\u5fae\u670d\u52a1\u53ef\u80fd\u4f9d\u8d56\u4e8e\u5927\u91cf\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u6846\u67b6\u3002\u4e91\u539f\u751fNPM\u80fd\u591f\u667a\u80fd\u5730\u89e3\u6790\u548c\u7ba1\u7406\u8fd9\u4e9b\u590d\u6742\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u786e\u4fdd\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u90fd\u80fd\u6b63\u786e\u5730\u52a0\u8f7d\u548c\u8fd0\u884c\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002\u540c\u65f6\uff0c\u5b83\u8fd8\u652f\u6301\u4f9d\u8d56\u7684\u7248\u672c\u9501\u5b9a\u548c\u5347\u7ea7\u7b56\u7565\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u597d\u5730\u63a7\u5236\u9879\u76ee\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u5feb\u901f\u7684\u5305\u5206\u53d1<\/strong>\n\u4e91\u539f\u751fNPM\u5229\u7528\u4e91\u7684\u4f18\u52bf\uff0c\u5b9e\u73b0\u4e86\u5168\u7403\u8303\u56f4\u5185\u7684\u5feb\u901f\u5305\u5206\u53d1\u3002\u901a\u8fc7\u5185\u5bb9\u5206\u53d1\u7f51\u7edc\uff08CDN\uff09\u548c\u7f13\u5b58\u673a\u5236\uff0c\u5f00\u53d1\u8005\u80fd\u591f\u5728\u77ed\u65f6\u95f4\u5185\u83b7\u53d6\u6240\u9700\u7684\u8f6f\u4ef6\u5305\uff0c\u5927\u5927\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u5f3a\u5927\u7684\u5b89\u5168\u4fdd\u969c<\/strong>\n\u5b89\u5168\u662f\u4e91\u539f\u751f\u5e94\u7528\u7684\u91cd\u8981\u5173\u6ce8\u70b9\u3002\u4e91\u539f\u751fNPM\u5f15\u5165\u4e86\u4e25\u683c\u7684\u5b89\u5168\u626b\u63cf\u673a\u5236\uff0c\u5bf9\u4e0a\u4f20\u7684\u8f6f\u4ef6\u5305\u8fdb\u884c\u6f0f\u6d1e\u68c0\u6d4b\u548c\u6076\u610f\u4ee3\u7801\u626b\u63cf\u3002\u540c\u65f6\uff0c\u5b83\u8fd8\u63d0\u4f9b\u4e86\u5305\u7684\u7b7e\u540d\u548c\u9a8c\u8bc1\u529f\u80fd\uff0c\u786e\u4fdd\u8f6f\u4ef6\u5305\u7684\u6765\u6e90\u53ef\u4fe1\uff0c\u6709\u6548\u5730\u964d\u4f4e\u4e86\u5b89\u5168\u98ce\u9669\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u7075\u6d3b\u7684\u914d\u7f6e\u548c\u5b9a\u5236<\/strong>\n\u4e0d\u540c\u7684\u9879\u76ee\u548c\u56e2\u961f\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u9700\u6c42\u3002\u4e91\u539f\u751fNPM\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u914d\u7f6e\u9009\u9879\u548c\u5b9a\u5236\u5316\u529f\u80fd\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u6839\u636e\u81ea\u5df1\u7684\u7279\u5b9a\u8981\u6c42\u8fdb\u884c\u8c03\u6574\uff0c\u6ee1\u8db3\u5404\u79cd\u590d\u6742\u7684\u4e1a\u52a1\u573a\u666f\u3002<\/p>\n\n\n<\/li>\n\n\n<\/ol>\n\n\n\n\n<p>\u3000\u3000<strong>\u4e09\u3001\u4e91\u539f\u751fNPM\u4e0e\u4e91\u6749\u7f51\u7edc\u7684\u7ed3\u5408<\/strong><\/p>\n\n\n\n\n<p>\u3000\u3000\u4e91\u6749\u7f51\u7edc\u4f5c\u4e3a\u5728\u4e91\u539f\u751f\u9886\u57df\u7684\u521b\u65b0\u8005\uff0c\u4e0e\u4e91\u539f\u751fNPM\u7684\u7ed3\u5408\u4e3a\u7528\u6237\u5e26\u6765\u4e86\u66f4\u591a\u7684\u4ef7\u503c\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000\u4e91\u6749\u7f51\u7edc\u7684\u6280\u672f\u4f18\u52bf\u80fd\u591f\u4e3a\u4e91\u539f\u751fNPM\u63d0\u4f9b\u5f3a\u5927\u7684\u7f51\u7edc\u4f18\u5316\u548c\u76d1\u63a7\u529f\u80fd\u3002\u901a\u8fc7\u5bf9\u7f51\u7edc\u6d41\u91cf\u7684\u5b9e\u65f6\u5206\u6790\u548c\u667a\u80fd\u8c03\u5ea6\uff0c\u786e\u4fdd\u8f6f\u4ef6\u5305\u7684\u5206\u53d1\u66f4\u52a0\u9ad8\u6548\u548c\u7a33\u5b9a\u3002\u540c\u65f6\uff0c\u4e91\u6749\u7f51\u7edc\u7684\u5b89\u5168\u89e3\u51b3\u65b9\u6848\u4e5f\u80fd\u591f\u8fdb\u4e00\u6b65\u589e\u5f3a\u4e91\u539f\u751fNPM\u7684\u5b89\u5168\u9632\u62a4\u80fd\u529b\uff0c\u4e3a\u7528\u6237\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u63d0\u4f9b\u5168\u65b9\u4f4d\u7684\u4fdd\u969c\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000<strong>\u56db\u3001\u4e91\u539f\u751fNPM\u5e26\u6765\u7684\u5f00\u53d1\u6548\u7387\u63d0\u5347<\/strong><\/p>\n\n\n\n\n<ol>\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u7b80\u5316\u5f00\u53d1\u6d41\u7a0b<\/strong>\n\u5f00\u53d1\u8005\u4e0d\u518d\u9700\u8981\u82b1\u8d39\u5927\u91cf\u65f6\u95f4\u548c\u7cbe\u529b\u53bb\u5bfb\u627e\u3001\u4e0b\u8f7d\u548c\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u4e91\u539f\u751fNPM\u63d0\u4f9b\u4e86\u4e00\u7ad9\u5f0f\u7684\u670d\u52a1\uff0c\u4f7f\u5f97\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u6d41\u7545\u548c\u9ad8\u6548\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u4fc3\u8fdb\u56e2\u961f\u534f\u4f5c<\/strong>\n\u5728\u56e2\u961f\u5f00\u53d1\u4e2d\uff0c\u4e91\u539f\u751fNPM\u80fd\u591f\u7edf\u4e00\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u907f\u514d\u4e86\u56e0\u4f9d\u8d56\u4e0d\u4e00\u81f4\u800c\u5bfc\u81f4\u7684\u5f00\u53d1\u51b2\u7a81\u3002\u540c\u65f6\uff0c\u5b83\u8fd8\u63d0\u4f9b\u4e86\u6743\u9650\u7ba1\u7406\u548c\u534f\u4f5c\u5de5\u5177\uff0c\u65b9\u4fbf\u56e2\u961f\u6210\u5458\u4e4b\u95f4\u7684\u6c9f\u901a\u548c\u534f\u4f5c\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u52a0\u901f\u521b\u65b0\u8fed\u4ee3<\/strong>\n\u5feb\u901f\u83b7\u53d6\u548c\u66f4\u65b0\u8f6f\u4ef6\u5305\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u53ca\u65f6\u5f15\u5165\u6700\u65b0\u7684\u6280\u672f\u548c\u529f\u80fd\uff0c\u52a0\u901f\u5e94\u7528\u7684\u521b\u65b0\u8fed\u4ee3\uff0c\u4fdd\u6301\u5728\u5e02\u573a\u7ade\u4e89\u4e2d\u7684\u9886\u5148\u5730\u4f4d\u3002<\/p>\n\n\n<\/li>\n\n\n<\/ol>\n\n\n\n\n<p>\u3000\u3000<strong>\u4e94\u3001\u4e91\u539f\u751fNPM\u5728\u4f01\u4e1a\u4e2d\u7684\u5e94\u7528\u6848\u4f8b<\/strong><\/p>\n\n\n\n\n<p>\u3000\u3000\u8bb8\u591a\u77e5\u540d\u4f01\u4e1a\u5df2\u7ecf\u6210\u529f\u5730\u5c06\u4e91\u539f\u751fNPM\u5e94\u7528\u5230\u4ed6\u4eec\u7684\u5f00\u53d1\u6d41\u7a0b\u4e2d\uff0c\u5e76\u53d6\u5f97\u4e86\u663e\u8457\u7684\u6210\u6548\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000\u4f8b\u5982\uff0c\u67d0\u5927\u578b\u7535\u5546\u4f01\u4e1a\u5229\u7528\u4e91\u539f\u751fNPM\u5bf9\u5176\u5fae\u670d\u52a1\u67b6\u6784\u8fdb\u884c\u8f6f\u4ef6\u5305\u7ba1\u7406\uff0c\u5b9e\u73b0\u4e86\u5feb\u901f\u7684\u4e1a\u52a1\u6269\u5c55\u548c\u8fed\u4ee3\u3002\u901a\u8fc7\u9ad8\u6548\u7684\u4f9d\u8d56\u7ba1\u7406\u548c\u5b89\u5168\u4fdd\u969c\uff0c\u964d\u4f4e\u4e86\u7cfb\u7edf\u7684\u7ef4\u62a4\u6210\u672c\u548c\u98ce\u9669\uff0c\u63d0\u9ad8\u4e86\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000\u53e6\u4e00\u5bb6\u91d1\u878d\u79d1\u6280\u516c\u53f8\u501f\u52a9\u4e91\u539f\u751fNPM\u52a0\u901f\u4e86\u65b0\u4ea7\u54c1\u7684\u5f00\u53d1\u4e0a\u7ebf\uff0c\u901a\u8fc7\u7075\u6d3b\u7684\u914d\u7f6e\u548c\u5b9a\u5236\u529f\u80fd\uff0c\u6ee1\u8db3\u4e86\u91d1\u878d\u884c\u4e1a\u4e25\u683c\u7684\u76d1\u7ba1\u8981\u6c42\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000<strong>\u516d\u3001\u4e91\u539f\u751fNPM\u9762\u4e34\u7684\u6311\u6218\u4e0e\u5e94\u5bf9\u7b56\u7565<\/strong><\/p>\n\n\n\n\n<ol>\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u6027\u80fd\u4f18\u5316<\/strong>\n\u968f\u7740\u8f6f\u4ef6\u5305\u6570\u91cf\u7684\u4e0d\u65ad\u589e\u52a0\u548c\u7528\u6237\u89c4\u6a21\u7684\u6269\u5927\uff0c\u4e91\u539f\u751fNPM\u9762\u4e34\u7740\u6027\u80fd\u65b9\u9762\u7684\u6311\u6218\u3002\u4e3a\u4e86\u5e94\u5bf9\u8fd9\u4e00\u95ee\u9898\uff0c\u53ef\u4ee5\u91c7\u7528\u5206\u5e03\u5f0f\u5b58\u50a8\u3001\u7f13\u5b58\u4f18\u5316\u548c\u7d22\u5f15\u6539\u8fdb\u7b49\u6280\u672f\u624b\u6bb5\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u54cd\u5e94\u901f\u5ea6\u548c\u541e\u5410\u91cf\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u517c\u5bb9\u6027\u95ee\u9898<\/strong>\n\u4e0d\u540c\u7684\u4e91\u539f\u751f\u6280\u672f\u6808\u548c\u5f00\u53d1\u6846\u67b6\u53ef\u80fd\u5b58\u5728\u517c\u5bb9\u6027\u5dee\u5f02\u3002\u4e91\u539f\u751fNPM\u9700\u8981\u4e0d\u65ad\u52a0\u5f3a\u5bf9\u5404\u79cd\u6280\u672f\u7684\u652f\u6301\u548c\u517c\u5bb9\uff0c\u786e\u4fdd\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u90fd\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n\n\n<\/li>\n\n\n\n\n<li style=\"text-indent:2em;\">\n\n<p>\u3000\u3000<strong>\u6cd5\u5f8b\u6cd5\u89c4\u5408\u89c4<\/strong>\n\u5728\u8f6f\u4ef6\u5305\u7684\u5206\u53d1\u548c\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u9075\u5b88\u76f8\u5173\u7684\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u5982\u77e5\u8bc6\u4ea7\u6743\u4fdd\u62a4\u548c\u6570\u636e\u9690\u79c1\u6cd5\u89c4\u3002\u4e91\u539f\u751fNPM\u5e94\u63d0\u4f9b\u76f8\u5e94\u7684\u5408\u89c4\u68c0\u6d4b\u548c\u63d0\u9192\u529f\u80fd\uff0c\u5e2e\u52a9\u7528\u6237\u907f\u514d\u6f5c\u5728\u7684\u6cd5\u5f8b\u98ce\u9669\u3002<\/p>\n\n\n<\/li>\n\n\n<\/ol>\n\n\n\n\n<p>\u3000\u3000<strong>\u4e03\u3001\u672a\u6765\u5c55\u671b<\/strong><\/p>\n\n\n\n\n<p>\u3000\u3000\u968f\u7740\u4e91\u539f\u751f\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\u548c\u666e\u53ca\uff0c\u4e91\u539f\u751fNPM\u5c06\u7ee7\u7eed\u53d1\u6325\u91cd\u8981\u4f5c\u7528\uff0c\u5e76\u4e0d\u65ad\u521b\u65b0\u548c\u5b8c\u5584\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000\u9884\u8ba1\u672a\u6765\u4e91\u539f\u751fNPM\u5c06\u66f4\u52a0\u667a\u80fd\u5316\uff0c\u80fd\u591f\u6839\u636e\u9879\u76ee\u7684\u7279\u70b9\u548c\u9700\u6c42\uff0c\u81ea\u52a8\u63a8\u8350\u5408\u9002\u7684\u8f6f\u4ef6\u5305\u548c\u7248\u672c\u3002\u540c\u65f6\uff0c\u4e0e\u4eba\u5de5\u667a\u80fd\u548c\u673a\u5668\u5b66\u4e60\u6280\u672f\u7684\u7ed3\u5408\uff0c\u5c06\u8fdb\u4e00\u6b65\u63d0\u9ad8\u5b89\u5168\u626b\u63cf\u548c\u6f0f\u6d1e\u68c0\u6d4b\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000\u6b64\u5916\uff0c\u4e91\u539f\u751fNPM\u8fd8\u5c06\u4e0e\u66f4\u591a\u7684\u4e91\u539f\u751f\u5de5\u5177\u548c\u5e73\u53f0\u8fdb\u884c\u6df1\u5ea6\u96c6\u6210\uff0c\u5f62\u6210\u66f4\u52a0\u5b8c\u5584\u7684\u751f\u6001\u7cfb\u7edf\uff0c\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u63d0\u4f9b\u66f4\u52a0\u5168\u9762\u548c\u4fbf\u6377\u7684\u670d\u52a1\u3002<\/p>\n\n\n\n\n<p>\u3000\u3000<strong>\u603b\u7ed3<\/strong><\/p>\n\n\n\n\n<p>\u3000\u3000\u4e91\u539f\u751fNPM\u4f5c\u4e3a\u8f6f\u4ef6\u5305\u7ba1\u7406\u9886\u57df\u7684\u521b\u65b0\u5f15\u9886\u8005\uff0c\u6b63\u5728\u6539\u53d8\u7740\u8f6f\u4ef6\u5f00\u53d1\u548c\u90e8\u7f72\u7684\u65b9\u5f0f\u3002\u5b83\u7684\u9ad8\u6548\u4f9d\u8d56\u7ba1\u7406\u3001\u5feb\u901f\u5305\u5206\u53d1\u3001\u5f3a\u5927\u7684\u5b89\u5168\u4fdd\u969c\u548c\u7075\u6d3b\u7684\u914d\u7f6e\u5b9a\u5236\u529f\u80fd\uff0c\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u5e26\u6765\u4e86\u663e\u8457\u7684\u4ef7\u503c\u3002\u4e0e\u4e91\u6749\u7f51\u7edc\u7b49\u4f18\u79c0\u7684\u6280\u672f\u4f19\u4f34\u7684\u7ed3\u5408\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u4e86\u5176\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u5c3d\u7ba1\u9762\u4e34\u4e00\u4e9b\u6311\u6218\uff0c\u4f46\u901a\u8fc7\u4e0d\u65ad\u7684\u6280\u672f\u521b\u65b0\u548c\u4f18\u5316\uff0c\u4e91\u539f\u751fNPM\u7684\u672a\u6765\u53d1\u5c55\u524d\u666f\u5e7f\u9614\uff0c\u5c06\u7ee7\u7eed\u63a8\u52a8\u4e91\u539f\u751f\u6280\u672f\u7684\u53d1\u5c55\u548c\u5e94\u7528\u3002<\/p>\n\n\n]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":5,"featured_media":8911,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-8910","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/8910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=8910"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/8910\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media\/8911"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=8910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=8910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=8910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}