麻烦安装Yeoman(Trouble installing Yeoman)

编程入门 行业动态 更新时间:2024-10-12 16:28:52
麻烦安装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 0

I 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 yeoman

You'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

更多推荐

本文发布于:2023-08-02 07:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1372384.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:麻烦   Yeoman   installing   Trouble

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!