在准备在我的OS X机器上安装Appium时,我遇到了下一个错误。不幸的是我首先用root-access安装了它,但是把它删除了
nb-user:npm user$ brew install node
Warning: node-0.12.0_1 already installed
npm install -g appium # get appium
结果
nb-user:~ user$ npm install -g appium
npm ERR! tar.unpack untar error /Users/kad/.npm/appium/1.3.6/package.tgz
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! node v0.12.0
npm ERR! npm v2.7.4
npm ERR! path /usr/local/lib/node_modules/appium
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/appium'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/appium']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/appium',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/appium',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR! 'FSReqWrap.oncomplete (fs.js:99:15)' ] }
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/user/npm-debug.log
在root用户下再次安装(节点版本错误)
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.0","npm":"2.7.4"})
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.7.4"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.7.4"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.7.4"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.7.4"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.7.4"})
appium在root下不起作用:(
如何才能完全删除node和appium(root用户和本地用户)以便再次安装它而不会出现任何错误?
答案 0 :(得分:0)
答案 1 :(得分:0)
卸载所有东西, 首先安装brew,然后从brew安装npm,然后从节点安装appium。 我在linux中关注它,它也将在mac中帮助
http://install-appium-on-linux.blogspot.com/2015/01/install-ruby-sudo-apt-get-install-build.html