使用 npm 命令安装 appium,npm --registry http://registry.cnpmjs.org install -g appium 这个命令
报错
38542 error Darwin 16.3.0
38543 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "--registry" "http://registry.cnpmjs.org" "install" "-g" "appium"
38544 error node v4.4.4
38545 error npm v4.0.5
38546 error path /usr/local/lib/node_modules/appium/node_modules/fsevents/node_modules/gauge
38547 error code ENOENT
38548 error errno -2
38549 error syscall rename
38550 error enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/appium/node_modules/fsevents/node_modules/gauge' -> '/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/gauge'
38551 error enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/appium/node_modules/fsevents/node_modules/gauge' -> '/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/gauge'
38551 error enoent This is most likely not a problem with npm itself
38551 error enoent and is related to npm not being able to find a file.
38552 verbose exit [ -2, true ]
这个事 npm 的 log,麻烦大家帮忙指点一下


↙↙↙阅读原文可查看相关链接,并与作者交流