以下是日志

Mac-mini:~ ds$ npm install -g appium @1.6.3
**npm ERR!** addLocal Could not install /Users/ds/@1.6.3
**npm ERR!**Darwin 16.5.0
**npm ERR!** argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "appium" "@1.6.3"
**npm ERR!** node v6.11.3
**npm ERR!** npm  v3.10.10
**npm ERR!** path /Users/ds/@1.6.3
**npm ERR!**code ENOENT
**npm ERR!** errno -2
**npm ERR!** syscall open

**npm ERR!** enoent ENOENT: no such file or directory, open '/Users/ds/@1.6.3'
**npm ERR!** enoent ENOENT: no such file or directory, open '/Users/ds/@1.6.3'
**npm ERR!** enoent This is most likely not a problem with npm itself
**npm ERR!** enoent and is related to npm not being able to find a file.
**npm ERR!** enoent 

**npm ERR!** Please include the following file with any support request:
**npm ERR!**     /Users/ds/npm-debug.log


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