Mac Hexo安装后 command not found: hexo的解决方法 我家猫叫佩奇 2021-04-19 1,156 阅读1分钟 $ npm root -g 获取node_modules地址 /Users/guo/.npm-global/lib/node_modules 添加进PATH。 $export PATH=$PATH:/Users/guo/.npm-global/lib/node_modules/hexo-cli/bin 也可以去修改~/.zshrc 或者~/.bashrc,在里面添加上述命令,然后 source ~/.zshrc