在 mac osx10.10.4 node.js 0.12.7环境下装 hexo 出现如下错误,求解
bogon:~ wangbin$ npm install hexo -g
npm WARN locking Error: EACCES, open '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE'
npm WARN locking at Error (native)
npm WARN locking /Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock failed { [Error: EACCES, open '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE' }
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "hexo" "-g"
npm ERR! node v0.12.7
npm ERR! npm v2.13.0
npm ERR! Attempt to unlock /usr/local/lib/node_modules/hexo, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/wangbin/npm-debug.log
bogon:~ wangbin$ npm install hexo -g
npm WARN locking Error: EACCES, open '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE'
npm WARN locking at Error (native)
npm WARN locking /Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock failed { [Error: EACCES, open '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE' }
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "hexo" "-g"
npm ERR! node v0.12.7
npm ERR! npm v2.13.0
npm ERR! Attempt to unlock /usr/local/lib/node_modules/hexo, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/wangbin/npm-debug.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
sudo npm install hexo -g