安装 appium1.6.0 问题

  1. 安装之前一定要把以前的历史版本卸载,否则会出一些这样那怎样的问题 npm uninstall -g appium
  2. github 上下载 appium1.6 正式版的源码 https://codeload.github.com/appium/appium/zip/v1.6.0
  3. 减压下载的文件,进入该目录执行如下命令: npm install 安装到这一步,报错以下内容
➜  appium-1.6.0 npm install
npm WARN package.json appium@1.6.0 No bin file found at ./build/lib/main.js
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1
npm ERR! path /Users/spring/Downloads/appium-1.6.0/node_modules/.bin/acorn
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink

npm ERR! Error: EACCES: permission denied, unlink '/Users/spring/Downloads/appium-1.6.0/node_modules/.bin/acorn'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, unlink '/Users/spring/Downloads/appium-1.6.0/node_modules/.bin/acorn']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'unlink',
npm ERR!   path: '/Users/spring/Downloads/appium-1.6.0/node_modules/.bin/acorn' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/spring/Downloads/appium-1.6.0/npm-debug.log


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