{"id":88,"date":"2017-06-23T11:38:13","date_gmt":"2017-06-23T03:38:13","guid":{"rendered":"http:\/\/49.232.131.197\/?p=88"},"modified":"2017-06-23T11:38:13","modified_gmt":"2017-06-23T03:38:13","slug":"npm%e7%9a%84%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.sourcecool.com\/index.php\/2017\/06\/23\/npm%e7%9a%84%e8%ae%be%e7%bd%ae\/","title":{"rendered":"NPM\u7684\u8bbe\u7f6e"},"content":{"rendered":"<div>1\u3001\u5173\u95ednpm\u7684https<\/div>\n<div><\/div>\n<div>\n<p>\u00a0 \u00a0 npm config set strict-ssl false<\/p>\n<\/div>\n<div><\/div>\n<div>2\u3001\u8bbe\u7f6enpm\u7684\u83b7\u53d6\u5730\u5740<\/div>\n<div><\/div>\n<div>\n<p>\u00a0 \u00a0 npm config set registry &#8220;http:\/\/<a href=\"http:\/\/registry.npm.taobao.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">registry.npm.taobao.org<\/a>&#8221;<\/p>\n<p>\u8fd9\u4e2a\u4e5f\u662f\u7f51\u4e0a\u641c\u7684\uff0c\u4eb2\u81ea\u8bd5\u8fc7\uff0c\u975e\u5e38\u597d\u7528\uff01<\/p>\n<p>\u955c\u50cf\u4f7f\u7528\u65b9\u6cd5\uff08\u4e09\u79cd\u529e\u6cd5\u4efb\u610f\u4e00\u79cd\u90fd\u80fd\u89e3\u51b3\u95ee\u9898\uff0c\u5efa\u8bae\u4f7f\u7528\u7b2c\u4e09\u79cd\uff0c\u5c06\u914d\u7f6e\u5199\u6b7b\uff0c\u4e0b\u6b21\u7528\u7684\u65f6\u5019\u914d\u7f6e\u8fd8\u5728\uff09:<\/p>\n<p>1.\u901a\u8fc7config\u547d\u4ee4<\/p>\n<p><code>npm config\u00a0set\u00a0registry https:\/\/registry.npm.taobao.org\u00a0npm info underscore\u00a0\uff08\u5982\u679c\u4e0a\u9762\u914d\u7f6e\u6b63\u786e\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u6709\u5b57\u7b26\u4e32response\uff09<\/code>2.\u547d\u4ee4\u884c\u6307\u5b9a<\/p>\n<p><code>npm\u00a0--registry https:\/\/registry.npm.taobao.org info underscore<\/code>3.\u7f16\u8f91\u00a0<code>~\/.npmrc<\/code>\u00a0\u52a0\u5165\u4e0b\u9762\u5185\u5bb9<\/p>\n<p><code>registry\u00a0=\u00a0https:\/\/registry.npm.taobao.org<\/code><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5173\u95ednpm\u7684https \u00a0 \u00a0 npm config s&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-linux","category-nodejs"],"_links":{"self":[{"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":0,"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sourcecool.com\/index.php\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}