{"id":1795,"date":"2017-08-17T11:57:07","date_gmt":"2017-08-17T03:57:07","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1795"},"modified":"2017-08-17T11:57:07","modified_gmt":"2017-08-17T03:57:07","slug":"%e5%ae%89%e8%a3%85npm%e6%88%96vue-cli%e6%8f%90%e7%a4%banpm-err-errno-4048%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1795","title":{"rendered":"\u5b89\u88c5npm\u6216vue-cli\u63d0\u793a\u201cnpm ERR! errno -4048\u201d\u9519\u8bef\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\u6709\u4eba\u5728csdn\u8bba\u575b\u91cc\u5411\u6211\u63d0\u95ee\uff1a&ldquo;<a href=\"http:\/\/bbs.csdn.net\/topics\/392216791\" name=\"vue-cli\u5b89\u88c5\u5931\u8d25\" target=\"_blank\" title=\"vue-cli\u5b89\u88c5\u5931\u8d25\">\u5b89\u88c5vue-cli\u62a5\u9519\u4e86<\/a>&rdquo;\uff0c\u5e76\u4e14\u9644\u4e0a\u4e86\u622a\u56fe\u3002\u7531\u4e8e\u4e34\u8fd1\u4e0b\u73ed\u7684\u5173\u7cfb\uff0c\u6211\u5e76\u6ca1\u6709\u5f53\u573a\u7ed9\u51fa\u89e3\u51b3\u65b9\u6848\u3002\u73b0\u5728\u62bd\u51fa\u65f6\u95f4\uff0c\u8d34\u4e0a\u6211\u7684\u89e3\u51b3\u529e\u6cd5\u3002\n<\/p>\n<p>\n\tnpm ERR! errno -4048 \u5f02\u5e38\u5f88\u5e38\u89c1\uff0c\u5728\u5b89\u88c5 npm \u6216 node-xmpp-server \u65f6\u4e5f\u6709\u53ef\u80fd\u4e5f\u4f1a\u51fa\u73b0\u3002\u4ee5\u4e0b\u662f\u622a\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"npm ERR! errno -4048\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201708\/16\/1502872733_903119.png\" style=\"width: 677px;height: 699px\" \/>\n<\/p>\n<h2>\n\t\u89e3\u51b3\u529e\u6cd5<br \/>\n<\/h2>\n<p>\n\t\u5220\u9664\u4e0b\u9762\u4e24\u4e2a\u6587\u6863\uff1a\n<\/p>\n<ul>\n<li>\n\t\t%ProgramFiles%\\nodejs\\npm\n\t<\/li>\n<li>\n\t\t%ProgramFiles%\\nodejs\\npm.cmd\n\t<\/li>\n<\/ul>\n<p>\n\t\u7136\u540e\u8fdb\u5165\u5230&nbsp;%ProgramFiles%\\nodejs\\node_modules\\npm\u76ee\u5f55\uff0c\u590d\u5236\u5e76\u547d\u540d\u6587\u4ef6\u4e3anpmrc\u5230%appdata%\\npm\\node_modules\\npm\u76ee\u5f55\u4e0b\u3002\u7136\u540e\u91cd\u542f\u4f60\u7684\u7535\u8111\u5c31\u53ef\u4ee5\u4e86\u3002\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/stackoverflow.com\/questions\/30860795\/fail-to-install-npm-package-npm-err-errno-4048\" name=\"Fail to install npm package \u201cnpm ERR! errno -4048\u201d\" target=\"_blank\" title=\"Fail to install npm package \u201cnpm ERR! errno -4048\u201d\">Fail to install npm package &ldquo;npm ERR! errno -4048&rdquo;<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/github.com\/npm\/npm\/wiki\/Troubleshooting#upgrading-on-windows\" name=\"upgrading-on-windows\" target=\"_blank\" title=\"upgrading-on-windows\">Troubleshooting<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1795\">\u5b89\u88c5npm\u6216vue-cli\u63d0\u793a\u201cnpm ERR! errno -4048\u201d\u9519\u8bef\u7684\u89e3\u51b3\u65b9\u6cd5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6709\u4eba\u5728csdn\u8bba\u575b\u91cc\u5411\u6211\u63d0\u95ee\uff1a&ldquo;\u5b89\u88c5vue-cli\u62a5\u9519\u4e86&rdquo;\uff0c\u5e76\u4e14\u9644\u4e0a\u4e86\u622a\u56fe\u3002\u7531\u4e8e\u4e34 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1415,1433,1434],"class_list":["post-1795","post","type-post","status-publish","format-standard","hentry","category-html5","tag-node-js","tag-npm","tag-vue"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1795"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1795\/revisions"}],"predecessor-version":[{"id":1796,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1795\/revisions\/1796"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}