安装package gulp nodejs时出错

时间:2015-07-09 06:55:43

标签: npm gulp

获取错误:EACCES,rmdir' / usr / local / lib / node_modules / gulp'在尝试安装gulp时

npm install gulp -g

尝试使用管理员(sudo)运行,但仍然无法安装它。

npm ERR! Error: EACCES, rmdir '/usr/local/lib/node_modules/gulp'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, rmdir '/usr/local/lib/node_modules/gulp']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/usr/local/lib/node_modules/gulp' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, rmdir '/usr/local/lib/node_modules/gulp'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: EACCES, rmdir '/usr/local/lib/node_modules/gulp']
npm ERR! error rolling back   errno: -13,
npm ERR! error rolling back   code: 'EACCES',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gulp' }

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/giridhar/Work/Node/npm-debug.log

0 个答案:

没有答案