安装不了任何的npm插件了
发布于 2年前 作者 sampeng 1469 次浏览

原先一直好好的 误删掉/usr/local/lib/node_modules后就悲剧了。 装什么插件都是以下类似的错误提示。就是装不上

我做过的尝试

卸载node。重装 无果 删除缓存 无果 装低版本的node 无果 上github发issues 无果 问谷歌和度娘 无果

npm http 304 http://registry.npmjs.vitecho.com/mime npm http 304 http://registry.npmjs.vitecho.com/form-data/0.0.8 npm ERR! Error: ENOENT, chown ‘/usr/local/lib/node_modules/npm/node_modules/tap/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/node_modules/weak/node_modules/mocha/node_modules/coffee-script/node_modules/jison/node_modules/browserify/node_modules/browser-builtins/node_modules/punycode/node_modules/grunt/node_modules/temporary/node_modules/chai/node_modules/component/node_modules/component-builder/node_modules/ejs/test/fixtures/single-quote.ejs’ npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-71.el6.x86_64 npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” “update” "-g" “npm” npm ERR! cwd /root/node-v0.10.12 npm ERR! node -v v0.10.12 npm ERR! npm -v 1.2.32 npm ERR! path /usr/local/lib/node_modules/npm/node_modules/tap/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/node_modules/weak/node_modules/mocha/node_modules/coffee-script/node_modules/jison/node_modules/browserify/node_modules/browser-builtins/node_modules/punycode/node_modules/grunt/node_modules/temporary/node_modules/chai/node_modules/component/node_modules/component-builder/node_modules/ejs/test/fixtures/single-quote.ejs npm ERR! fstream_path /usr/local/lib/node_modules/npm/node_modules/tap/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/node_modules/weak/node_modules/mocha/node_modules/coffee-script/node_modules/jison/node_modules/browserify/node_modules/browser-builtins/node_modules/punycode/node_modules/grunt/node_modules/temporary/node_modules/chai/node_modules/component/node_modules/component-builder/node_modules/ejs/test/fixtures/single-quote.ejs npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chown npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19 npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:265:7 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http GET http://registry.npmjs.vitecho.com/mkdirp npm http 304 http://registry.npmjs.vitecho.com/testutil

回到顶部