{"id":595,"date":"2020-06-28T19:56:08","date_gmt":"2020-06-28T11:56:08","guid":{"rendered":"https:\/\/www.iotch.xyz\/?p=595"},"modified":"2020-06-28T19:56:08","modified_gmt":"2020-06-28T11:56:08","slug":"npm%e6%8f%90%e7%a4%bacannot-find-module-npmlog%ef%bc%8c%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=595","title":{"rendered":"npm\u63d0\u793a\u201cCannot find module \u2018npmlog\u2019\u201d\uff0c\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>module.js:328\n \n    throw err;\n \n    ^\n \nError: Cannot find module 'npmlog'\n \n    at Function.Module._resolveFilename (module.js:326:15)\n \n    at Function.Module._load (module.js:277:25)\n \n    at Module.require (module.js:354:17)\n \n    at require (internal\/module.js:12:17)\n \n    at \/usr\/local\/lib\/node_modules\/npm\/bin\/npm-cli.js:20:13\n \n    at Object.&lt;anonymous> (\/usr\/local\/lib\/node_modules\/npm\/bin\/npm-cli.js:76:3)\n \n    at Module._compile (module.js:398:26)\n \n    at Object.Module._extensions..js (module.js:405:10)\n \n    at Module.load (module.js:344:32)\n \n    at Function.Module._load (module.js:301:12)<\/code><\/pre>\n\n\n\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<br>\u91cd\u65b0\u5b89\u88c5NPM\uff0c\u6210\u529f\u89e3\u51b3\uff01<\/p>\n\n\n\n<p>\u89e3\u51b3\uff1a <code>curl -0 -L http:\/\/npmjs.org\/install.sh | sudo sh<\/code><\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-\u79d1\u6280\u7231\u597d\u8005\u535a\u5ba2\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.lxx1.com\/topic\/npm%E6%8F%90%E7%A4%BAcannot-find-module-npmlog%EF%BC%8C%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95\n<\/div><\/figure>\n\n\n\n<p><\/p>\n<button class=\"simplefavorite-button\" data-postid=\"595\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u89e3\u51b3\u529e\u6cd5\uff1a\u91cd\u65b0\u5b89\u88c5NPM\uff0c\u6210\u529f\u89e3\u51b3\uff01 \u89e3\u51b3\uff1a curl -0 -L http:\/\/npmjs.org\/install.sh | s &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-595","post","type-post","status-publish","format-standard","hentry","category-10"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=595"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/595\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}