在 macOS 上使用 npm 安装 Appium 失败

LuG*_*Nat 5 macos npm appium npm-install

运行时npm install -g appium,安装失败并显示以下日志:

npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /usr/local/Cellar/node/15.1.0/lib/node_modules/appium/build/lib/main.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/Cellar/node/15.1.0/lib/node_modules/appium/build/lib/main.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lgn/.npm/_logs/2020-11-09T08_33_15_328Z-debug.log
Run Code Online (Sandbox Code Playgroud)