在ubuntu 15.10上运行appium时出错

时间:2016-04-13 10:17:06

标签: ubuntu npm appium

我是appium的新手,我已经安装了npm和node。我跑的时候

"sudo npm install -g appium"

我收到此错误。

npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})

> appium-chromedriver@2.8.3 install /usr/local/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver
> node install-npm.js

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/lodash/utility/propertyOf.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.2.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "appium"
npm ERR! cwd /home/nevedha
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/lodash/utility/propertyOf.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! appium-chromedriver@2.8.3 install: `node install-npm.js`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the appium-chromedriver@2.8.3 install script.
npm ERR! This is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install-npm.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.2.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "appium"
npm ERR! cwd /home/nevedha
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! tar.unpack untar error /home/nevedha/.npm/appium-adb/2.5.1/package.tgz
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/nevedha/npm-debug.log
npm ERR! not ok code 0

有人可以帮帮我吗?

谢谢你的时间。

0 个答案:

没有答案