在 mac osx10.10.4 node.js 0.12.7环境下装 hexo 出现如下错误,求解

发布于 2022-09-01 13:14:03 字数 2154 浏览 17 评论 0

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝色星空 2022-09-08 13:14:03
hexonpm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server
亽野灬性zι浪 2022-09-08 13:14:03

sudo npm install hexo -g

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文