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

小强哥 · February 22, 2022 · Last by butcher replied at March 16, 2022 · 2642 hits

命令行安装 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

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up