{"id":3424,"date":"2017-12-02T18:06:31","date_gmt":"2017-12-02T10:06:31","guid":{"rendered":"http:\/\/gaigaiming.com\/?p=3424"},"modified":"2017-12-02T18:06:31","modified_gmt":"2017-12-02T10:06:31","slug":"npm-%e5%ae%89%e8%a3%85%e5%87%ba%e7%8e%b0-unmet-dependency-%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.gaigaiming.com\/index.php\/2017\/12\/02\/npm-%e5%ae%89%e8%a3%85%e5%87%ba%e7%8e%b0-unmet-dependency-%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/","title":{"rendered":"npm \u5b89\u88c5\u51fa\u73b0 UNMET DEPENDENCY\u00a0\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<header class=\"entry-header\">\n<div class=\"entry-meta\">\u8f6c\u8f7d\u81ea&nbsp;https:\/\/lellansin.wordpress.com\/2014\/02\/27\/npm-%E5%AE%89%E8%A3%85%E5%87%BA%E7%8E%B0-unmet-dependency-%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\/<\/div>\n<\/header>\n<div class=\"entry-content\">\n<div>\n<div id=\"highlighter_506939\" class=\"syntaxhighlighter bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"pure-highlightjs\"><code class=\"\">npm install express -g\n...\nnpm list -g\nD:UsersLsAppDataRoamingnpm\n\u2514\u2500\u252c express@3.4.8\n&nbsp;&nbsp;\u251c\u2500\u2500 buffer-crc32@0.2.1\n&nbsp;&nbsp;\u251c\u2500\u252c commander@1.3.2\n&nbsp;&nbsp;\u2502 \u2514\u2500\u2500 keypress@0.1.0\n&nbsp;&nbsp;\u251c\u2500\u252c connect@2.12.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY batch 0.5.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY bytes 0.2.1\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY multiparty 2.2.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY negotiator 0.3.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY pause 0.0.1\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY qs 0.6.6\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY raw-body 1.1.2\n&nbsp;&nbsp;\u2502 \u2514\u2500\u2500 UNMET DEPENDENCY uid2 0.0.3\n&nbsp;&nbsp;\u251c\u2500\u2500 cookie@0.1.0\n&nbsp;&nbsp;\u251c\u2500\u2500 cookie-signature@1.0.1\n&nbsp;&nbsp;\u251c\u2500\u2500 debug@0.7.4\n&nbsp;&nbsp;\u251c\u2500\u2500 fresh@0.2.0\n&nbsp;&nbsp;\u251c\u2500\u2500 merge-descriptors@0.0.1\n&nbsp;&nbsp;\u251c\u2500\u2500 methods@0.1.0\n&nbsp;&nbsp;\u251c\u2500\u2500 mkdirp@0.3.5\n&nbsp;&nbsp;\u251c\u2500\u2500 range-parser@0.0.4\n&nbsp;&nbsp;\u2514\u2500\u252c send@0.1.4\n&nbsp;&nbsp;&nbsp;&nbsp;\u2514\u2500\u2500 mime@1.2.11\n&nbsp;\nnpm ERR! missing: batch@0.5.0, required by connect@2.12.0\nnpm ERR! missing: bytes@0.2.1, required by connect@2.12.0\nnpm ERR! missing: pause@0.0.1, required by connect@2.12.0\n...\nnpm ERR! not ok code 0<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><code class=\"bash plain\"><\/code><\/p>\n<\/div>\n<\/div>\n<p>\u4eca\u5929\u5b89\u88c5\u4e00\u4e9b\u6a21\u5757\u7684\u65f6\u5019\u53d1\u73b0 npm install \u5230\u4e86\u4e00\u4e2a\u70b9\u4e4b\u540e\u5c31\u5361\u4f4f\u4e86\u4e00\u6837\u7b49\u4e86\u534a\u5929\u4e00\u76f4\u4e0d\u52a8\uff0c\u63a5\u7740\u4e2d\u65ad\u770b\u4e86\u4e0b\u51fa\u73b0\u5b89\u88c5\u51fa\u73b0\u4e86 UNMET DEPENDENCY \u7684 \u6a21\u5757\uff0c\u8fd9\u4e2a\u65f6\u5019\u5982\u679c\u91cd\u65b0 install \u4e00\u4fbf\u7684\u8bdd\uff0c\u53c8\u4f1a\u91cd\u5934\u5f00\u59cb\uff0c\u5982\u679c\u53c8\u78b0\u5230\u5361\u58f3\u5c31\u5f88\u70e6\u3002<\/p>\n<p>\u67e5\u4e86\u4e00\u4e0b\u53d1\u73b0\u662f\u8ddf\u65e7\u7248 npm \u6709\u5173\u7684\u95ee\u9898:&nbsp;<a href=\"https:\/\/github.com\/isaacs\/npm\/issues\/1341#issuecomment-20634338\" rel=\"nofollow\">https:\/\/github.com\/isaacs\/npm\/issues\/1341#issuecomment-20634338<\/a><\/p>\n<h1>\u65b9\u6848\u4e00<\/h1>\n<div>\n<div id=\"highlighter_785388\" class=\"syntaxhighlighter bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">rm<\/code> <code class=\"bash plain\">-rf node_modules\/&nbsp;&nbsp;&nbsp; <\/code><code class=\"bash comments\"># \u5220\u9664\u5df2\u5b89\u88c5\u7684\u6a21\u5757<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"bash plain\">npm cache clean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/code><code class=\"bash comments\"># \u6e05\u9664 npm \u5185\u90e8\u7f13\u5b58<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"bash plain\">npm <\/code><code class=\"bash functions\">install<\/code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <code class=\"bash comments\"># \u91cd\u65b0\u5b89\u88c5<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h1>\u65b9\u6848\u4e8c<\/h1>\n<div>\n<div id=\"highlighter_954513\" class=\"syntaxhighlighter bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">rm<\/code> <code class=\"bash plain\">-rf node_modules\/&nbsp;&nbsp;&nbsp; <\/code><code class=\"bash comments\"># \u5220\u9664\u5df2\u5b89\u88c5\u7684\u6a21\u5757<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"bash functions\">sudo<\/code> <code class=\"bash plain\">npm update -g npm&nbsp; <\/code><code class=\"bash comments\"># \u66f4\u65b0 npm<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"bash plain\">npm <\/code><code class=\"bash functions\">install<\/code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <code class=\"bash comments\"># \u91cd\u65b0\u5b89\u88c5<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h1>\u65b9\u6848\u4e09<\/h1>\n<p>npm list \u547d\u4ee4\u67e5\u770b\u4e4b\u540e\u8dd1\u5230\u7f3a\u5931\u6a21\u5757\u7684\u76ee\u5f55\u4e0b, \u624b\u52a8\u4fee\u590d\u90e8\u5206\u51fa\u9519\u7684\u6a21\u5757\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\">$ npm list -g\nD:UsersLsAppDataRoamingnpm\n\u2514\u2500\u252c express@3.4.8\n&nbsp;&nbsp;\u251c\u2500\u2500 buffer-crc32@0.2.1\n&nbsp;&nbsp;\u251c\u2500\u252c commander@1.3.2\n&nbsp;&nbsp;\u2502 \u2514\u2500\u2500 keypress@0.1.0\n&nbsp;&nbsp;\u251c\u2500\u252c connect@2.12.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY batch 0.5.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY bytes 0.2.1\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY multiparty 2.2.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY negotiator 0.3.0\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY pause 0.0.1\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY qs 0.6.6\n&nbsp;&nbsp;\u2502 \u251c\u2500\u2500 UNMET DEPENDENCY raw-body 1.1.2\n&nbsp;&nbsp;\u2502 \u2514\u2500\u2500 uid2@0.0.3\n&nbsp;&nbsp;\u251c\u2500\u2500 cookie@0.1.0\n&nbsp;&nbsp;\u251c\u2500\u2500 cookie-signature@1.0.1\n&nbsp;&nbsp;\u251c\u2500\u2500 debug@0.7.4\n&nbsp;&nbsp;\u251c\u2500\u2500 fresh@0.2.0\n&nbsp;&nbsp;\u251c\u2500\u2500 merge-descriptors@0.0.1\n&nbsp;&nbsp;\u251c\u2500\u2500 methods@0.1.0\n&nbsp;&nbsp;\u251c\u2500\u2500 mkdirp@0.3.5\n&nbsp;&nbsp;\u251c\u2500\u2500 range-parser@0.0.4\n&nbsp;&nbsp;\u2514\u2500\u252c send@0.1.4\n&nbsp;&nbsp;&nbsp;&nbsp;\u2514\u2500\u2500 mime@1.2.11\n&nbsp;\nnpm ERR! missing: batch@0.5.0, required by connect@2.12.0\nnpm ERR! missing: qs@0.6.6, required by connect@2.12.0\nnpm ERR! missing: bytes@0.2.1, required by connect@2.12.0\nnpm ERR! missing: pause@0.0.1, required by connect@2.12.0\nnpm ERR! missing: raw-body@1.1.2, required by connect@2.12.0\nnpm ERR! missing: negotiator@0.3.0, required by connect@2.12.0\nnpm ERR! missing: multiparty@2.2.0, required by connect@2.12.0\nnpm ERR! not ok code 0<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u53ef\u4ee5 cd \u5230\u5177\u4f53\u51fa\u95ee\u9898\u7684\u6a21\u5757\u76ee\u5f55\u4e0b\u624b\u52a8 npm install \u91cd\u65b0\u5b89\u88c5\u4e5f\u53ef\u4ee5\u89e3\u51b3.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\u81ea&nbsp;https:\/\/lellansin.wordpress.com\/2014\/02\/27\/npm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3424","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/3424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/comments?post=3424"}],"version-history":[{"count":0,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/3424\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/media?parent=3424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/categories?post=3424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/tags?post=3424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}