{"id":27845,"date":"2024-11-24T16:11:52","date_gmt":"2024-11-24T08:11:52","guid":{"rendered":"https:\/\/fwq.ai\/blog\/27845\/"},"modified":"2024-11-24T16:11:52","modified_gmt":"2024-11-24T08:11:52","slug":"%e5%ae%89%e8%a3%85-docsify-cli-%e8%84%9a%e6%89%8b%e6%9e%b6%e6%97%b6%e9%81%87%e5%88%b0-npm-err-code-etimedout-%e9%94%99%e8%af%af%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/27845\/","title":{"rendered":"\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\u9047\u5230 &#8220;npm ERR! code ETIMEDOUT&#8221; \u9519\u8bef\u600e\u4e48\u529e\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173132300515358.jpg\" class=\"aligncenter\" title=\"\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\u9047\u5230 &#8220;npm ERR! code ETIMEDOUT&#8221; \u9519\u8bef\u600e\u4e48\u529e\uff1f\u63d2\u56fe\" alt=\"\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\u9047\u5230 &#8220;npm ERR! code ETIMEDOUT&#8221; \u9519\u8bef\u600e\u4e48\u529e\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>docsify-cli \u811a\u624b\u67b6\u5b89\u88c5\u62a5\u9519<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n<p>\u5728\u5c1d\u8bd5\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\uff0c\u9047\u5230\u4e86\u4ee5\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre>npm ERR! code ETIMEDOUT\nnpm ERR! syscall connect\nnpm ERR! errno ETIMEDOUT\nnpm ERR! network request to https:\/\/registry.npmjs.org\/docsify-cli failed, reason: connect ETIMEDOUT 104.16.26.34:443\nnpm ERR! network This is a problem related to network connectivity.\nnpm ERR! network In most cases you are behind a proxy or have bad network settings.\nnpm ERR! network \nnpm ERR! network If you are behind a proxy, please make sure that the\nnpm ERR! network 'proxy' config is set properly.  See: 'npm help config'<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>\u539f\u56e0\uff1a<\/strong><\/p>\n<p>\u6b64\u9519\u8bef\u901a\u5e38\u662f\u7531\u4e8e\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\u6216\u4ee3\u7406\u8bbe\u7f6e\u4e0d\u6b63\u786e\u9020\u6210\u7684\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<ol>\n<li><strong>\u5207\u6362\u5230\u6dd8\u5b9d\u955c\u50cf\uff1a<\/strong><\/li>\n<\/ol>\n<pre>npm config set registry https:\/\/registry.npm.taobao.org<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u4ee3\u7406\u8bbe\u7f6e\uff1a<\/strong><\/li>\n<\/ol>\n<p>\u786e\u4fdd\u5df2\u6b63\u786e\u914d\u7f6e\u4ee3\u7406\u8bbe\u7f6e\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\u9047\u5230 &#8220;npm ERR! code ETIMEDOUT&#8221; \u9519\u8bef\u600e\u4e48\u529e\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 \u95ee\u9898\uff1a \u5728\u5c1d\u8bd5\u5b89\u88c5 docsify-cli \u811a\u624b\u67b6\u65f6\uff0c\u9047\u5230\u4e86\u4ee5\u4e0b\u9519\u8bef\uff1a npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! network request to https:\/\/registry.npmjs.org\/docsify-cli failed, reason: connect ETIMEDOUT 104.16.26.34:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network [&hellip;]<\/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-27845","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27845","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=27845"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27845\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=27845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=27845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=27845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}