1、首先在官网下载 nodejs 安装好,
2、使用命令 npm install -g appium 安装 appnuim 时出现如下报错:

“
npm ERR! Error: EACCES, symlink '../lib/node_modules/appium/bin/appium.js'
npm ERR!  { [Error: EACCES, symlink '../lib/node_modules/appium/bin/appium.js']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '../lib/node_modules/appium/bin/appium.js' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! cwd /Users/yytest
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path ../lib/node_modules/appium/bin/appium.js
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, symlink '../lib/node_modules/appium/bin/appium.js'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/yytest/npm-debug.log
npm ERR! not ok code 0
”

求解,谢谢


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