Mojito install error
在具有Node 0.6.19和NPM v 1.1.4的Ubuntu 12.10上,当尝试从NPM源和克隆的GitHub作为根目录(sudo)进行安装时,收到以下消息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | npm ERR! error installing [email protected] npm ERR! error installing [email protected] npm ERR! Error: ENOENT, chmod '/usr/local/lib/node_modules/mojito/node_modules/___yuidocjs.npm/package/tests/out/files/input_charts_StackedAreaSeries.js.html' npm ERR! You may report this log at: npm ERR! <http://bugs.debian.org/npm> npm ERR! or use npm ERR! reportbug --attach /home/me/devpath/mojito/npm-debug.log npm npm ERR! npm ERR! System Linux 3.5.0-17-generic npm ERR! command"/usr/bin/nodejs""/usr/bin/npm""install""-g""mojito" npm ERR! cwd /home/me/devpath/mojito npm ERR! node -v v0.6.19 npm ERR! npm -v 1.1.4 npm ERR! path /usr/local/lib/node_modules/mojito/node_modules/___yuidocjs.npm/package /tests/out/files/input_charts_StackedAreaSeries.js.html npm ERR! fstream_path /usr/local/lib/node_modules/mojito/node_modules/___yuidocjs.npm /package/tests/out/files/input_charts_StackedAreaSeries.js.html npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! message ENOENT, chmod '/usr/local/lib/node_modules/mojito/node_modules/___yuidocjs.npm/package/tests/out/files/input_charts_StackedAreaSeries.js.html' npm ERR! errno {} npm ERR! fstream_stack Object.oncomplete (/usr/lib/nodejs/fstream/lib/writer.js:285:17) npm ERR! Error: ENOENT, chmod '/usr/local/lib/node_modules/mojito/node_modules/js-yaml/bin/js-yaml.js' npm ERR! You may report this log at: npm ERR! <http://bugs.debian.org/npm> npm ERR! or use npm ERR! reportbug --attach /home/me/devpath/mojito/npm-debug.log npm npm ERR! npm ERR! System Linux 3.5.0-17-generic npm ERR! command"/usr/bin/nodejs""/usr/bin/npm""install""-g""mojito" npm ERR! cwd /home/me/devpath/mojito npm ERR! node -v v0.6.19 npm ERR! npm -v 1.1.4 npm ERR! path /usr/local/lib/node_modules/mojito/node_modules/js-yaml/bin/js-yaml.js npm ERR! code ENOENT npm ERR! message ENOENT, chmod '/usr/local/lib/node_modules/mojito/node_modules/js-yaml/bin/js-yaml.js' npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/me/devpath/mojito/npm-debug.log npm not ok |
我很茫然。为什么会以chudo出现chmod错误?我从这里去哪里?
过去一个小时我一直在处理相同的问题。我仍然不知道确切的问题是什么,尽管我发现许多人报告了相同的错误。问题似乎与您拥有的npm版本有关。我执行了以下步骤来解决此问题:
1)更新了节点。
2)更新了npm。 (sudo npm install -g npm)
3)清除了缓存。 (sudo npm清除缓存)