麻烦安装Yeoman(Trouble installing Yeoman)
您好所有我试图安装Yeoman但是当我尝试通过npm安装包时,我得到以下错误。
sudo npm install -g yeoman npm http GET https://registry.npmjs.org/yeoman npm http 200 https://registry.npmjs.org/yeoman npm http GET https://registry.npmjs.org/yeoman/-/yeoman-0.9.1.tgz npm http 200 https://registry.npmjs.org/yeoman/-/yeoman-0.9.1.tgz npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin' npm ERR! error rolling back yeoman@0.9.1 { [Error: ENOTEMPTY, rmdir '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin' } npm ERR! Error: ENOTEMPTY, rmdir '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin' 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 Darwin 11.4.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yeoman" npm ERR! cwd /Users/chris npm ERR! node -v v0.8.9 npm ERR! npm -v 1.1.61 npm ERR! path /usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin npm ERR! code ENOTEMPTY npm ERR! errno 53 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/chris/npm-debug.log npm ERR! not ok code 0我之前使用过node和npm,但是我从来没有得到过这样的错误。
Hello all I am attempting to install Yeoman however when I attempt to install the package via npm I get the following error.
sudo npm install -g yeoman npm http GET https://registry.npmjs.org/yeoman npm http 200 https://registry.npmjs.org/yeoman npm http GET https://registry.npmjs.org/yeoman/-/yeoman-0.9.1.tgz npm http 200 https://registry.npmjs.org/yeoman/-/yeoman-0.9.1.tgz npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin' npm ERR! error rolling back yeoman@0.9.1 { [Error: ENOTEMPTY, rmdir '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin' } npm ERR! Error: ENOTEMPTY, rmdir '/usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin' 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 Darwin 11.4.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yeoman" npm ERR! cwd /Users/chris npm ERR! node -v v0.8.9 npm ERR! npm -v 1.1.61 npm ERR! path /usr/local/share/npm/lib/node_modules/yeoman/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/node_modules/.bin npm ERR! code ENOTEMPTY npm ERR! errno 53 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/chris/npm-debug.log npm ERR! not ok code 0I have used node and npm before but I have never gotten an error like this.
最满意答案
尝试使用rmdir删除某个文件夹时出现notempty错误。 我不完全确定这是为什么..但..
rm -rf /usr/local/share/npm/lib/node_modules/yeoman sudo npm install -g yeomanYou've got a notempty error when trying to remove a certain folder with rmdir. I'm not exactly sure why that is.. but..
rm -rf /usr/local/share/npm/lib/node_modules/yeoman sudo npm install -g yeoman更多推荐
发布评论