Hexo: Mac 使用npm安装hexo缺少权限问题

Created on 1 Feb 2019  ·  2Comments  ·  Source: hexojs/hexo

安装时显示Missing write access to /usr/local/lib/node_modules

已解决 建议在官方教程的npm install -g hexo-cli前加上一个sudo

question

Most helpful comment

If node and npm is installed through Homebrew, you should have full access to /usr/local/lib/node_modules, and no sudo required. Using chown may make it work again.

All 2 comments

@joshuawsr Maybe node & npm are installed as root user?

If node and npm is installed through Homebrew, you should have full access to /usr/local/lib/node_modules, and no sudo required. Using chown may make it work again.

Was this page helpful?
0 / 5 - 0 ratings