{"id":27941,"date":"2024-11-24T13:39:57","date_gmt":"2024-11-24T05:39:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/27941\/"},"modified":"2024-11-24T13:39:57","modified_gmt":"2024-11-24T05:39:57","slug":"docsify-cli-%e8%84%9a%e6%89%8b%e6%9e%b6%e5%ae%89%e8%a3%85%e6%8a%a5%e9%94%99%ef%bc%9a%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3-npm-err-code-etimedout-%e9%94%99%e8%af%af%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/27941\/","title":{"rendered":"Docsify-CLI \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 npm ERR! code ETIMEDOUT \u9519\u8bef\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173133684428694.jpg\" class=\"aligncenter\" title=\"Docsify-CLI \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 npm ERR! code ETIMEDOUT \u9519\u8bef\uff1f\u63d2\u56fe\" alt=\"Docsify-CLI \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 npm ERR! code ETIMEDOUT \u9519\u8bef\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>docsify-cli \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519<\/strong><\/p>\n<p>\u5728\u5c1d\u8bd5\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u9519\u8bef\u4fe1\u606f\uff1a\u201cnpm ERR! code ETIMEDOUT&#8230;\u201d\u3002\u8fd9\u901a\u5e38\u662f\u7531\u4e8e\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\u5f15\u8d77\u7684\u3002<\/p>\n<p><strong>\u9519\u8bef\u539f\u56e0<\/strong><\/p>\n<p>\u6b64\u9519\u8bef\u8868\u660e npm \u65e0\u6cd5\u8fde\u63a5\u5230 npmjs.org \u6ce8\u518c\u8868\u3002\u539f\u56e0\u53ef\u80fd\u662f\uff1a<\/p>\n<ul>\n<li>\u4ee3\u7406\u914d\u7f6e\u4e0d\u6b63\u786e<\/li>\n<li>\u7f51\u7edc\u8bbe\u7f6e\u95ee\u9898<\/li>\n<li>\u7f51\u7edc\u4e0d\u53ef\u7528<\/li>\n<\/ul>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\uff1a<\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u7684\u4ee3\u7406\u8bbe\u7f6e\u5df2\u6b63\u786e\u914d\u7f6e\uff08\u8bf7\u53c2\u9605 npm \u5e2e\u52a9\u6587\u6863\u4e86\u89e3\u914d\u7f6e\u4ee3\u7406\u7684\u8bf4\u660e\uff09<\/li>\n<li>\u68c0\u67e5\u60a8\u7684\u7f51\u7edc\u8fde\u63a5\u5e76\u786e\u4fdd\u5176\u6b63\u5e38\u5de5\u4f5c<\/li>\n<li>\u5207\u6362\u5230\u5176\u4ed6 npm \u6ce8\u518c\u8868\u955c\u50cf\uff0c\u4f8b\u5982\u6dd8\u5b9d\u955c\u50cf<\/li>\n<\/ul>\n<p><strong>\u5207\u6362\u5230\u6dd8\u5b9d\u955c\u50cf<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u5728\u4e2d\u56fd\u5927\u9646\uff0c\u5207\u6362\u5230\u6dd8\u5b9d\u955c\u50cf\u901a\u5e38\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>npm config set registry https:\/\/registry.npm.taobao.org<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDocsify-CLI \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 npm ERR! code ETIMEDOUT \u9519\u8bef\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>docsify-cli \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519 \u5728\u5c1d\u8bd5\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u9519\u8bef\u4fe1\u606f\uff1a\u201cnpm ERR! code ETIMEDOUT&#8230;\u201d\u3002\u8fd9\u901a\u5e38\u662f\u7531\u4e8e\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\u5f15\u8d77\u7684\u3002 \u9519\u8bef\u539f\u56e0 \u6b64\u9519\u8bef\u8868\u660e npm \u65e0\u6cd5\u8fde\u63a5\u5230 npmjs.org \u6ce8\u518c\u8868\u3002\u539f\u56e0\u53ef\u80fd\u662f\uff1a \u4ee3\u7406\u914d\u7f6e\u4e0d\u6b63\u786e \u7f51\u7edc\u8bbe\u7f6e\u95ee\u9898 \u7f51\u7edc\u4e0d\u53ef\u7528 \u89e3\u51b3\u65b9\u6cd5 \u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\uff1a \u786e\u4fdd\u60a8\u7684\u4ee3\u7406\u8bbe\u7f6e\u5df2\u6b63\u786e\u914d\u7f6e\uff08\u8bf7\u53c2\u9605 npm \u5e2e\u52a9\u6587\u6863\u4e86\u89e3\u914d\u7f6e\u4ee3\u7406\u7684\u8bf4\u660e\uff09 \u68c0\u67e5\u60a8\u7684\u7f51\u7edc\u8fde\u63a5\u5e76\u786e\u4fdd\u5176\u6b63\u5e38\u5de5\u4f5c \u5207\u6362\u5230\u5176\u4ed6 npm \u6ce8\u518c\u8868\u955c\u50cf\uff0c\u4f8b\u5982\u6dd8\u5b9d\u955c\u50cf \u5207\u6362\u5230\u6dd8\u5b9d\u955c\u50cf \u5982\u679c\u60a8\u5728\u4e2d\u56fd\u5927\u9646\uff0c\u5207\u6362\u5230\u6dd8\u5b9d\u955c\u50cf\u901a\u5e38\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a npm config set registry https:\/\/registry.npm.taobao.org \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662fDocsify-CLI \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 npm ERR! code ETIMEDOUT \u9519\u8bef\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-27941","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=27941"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27941\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=27941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=27941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=27941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}