首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Yeoman时出现问题

安装Yeoman时出现问题
EN

Stack Overflow用户
提问于 2012-09-18 03:06:45
回答 1查看 4.2K关注 0票数 3

大家好,我正在尝试安装Yeoman,然而,当我尝试通过npm安装软件包时,我得到了以下错误。

代码语言:javascript
复制
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,但从来没有遇到过这样的错误。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-09-18 07:53:13

当您尝试使用rmdir删除某个文件夹时,会出现notempty错误。我不太确定为什么..。但是..。

代码语言:javascript
复制
rm -rf /usr/local/share/npm/lib/node_modules/yeoman
sudo npm install -g yeoman
票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12465607

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档