Appium mac 安装命令行 appium 报错虽然用 sudo 命令但还是报错,可能是权限问题,npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

小强哥 · 2022年02月22日 · 最后由 butcher 回复于 2022年03月16日 · 2702 次阅读

命令行安装 appium:sudo npm install -g appium@1.15

gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/Users/apple/Library/Caches/node-gyp/12.16.3"

命令后增加 --unsafe-perm
sudo npm install -g appium@1.15 --unsafe-perm

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册