51Testing软件测试论坛
标题:
Day3-5测试积点任务
[打印本页]
作者:
测试积点老人
时间:
2018-8-21 10:46
标题:
Day3-5测试积点任务
问题:
求教ubuntu14.04中安装appnium失败
/home/shujing/android/node-v6.6.0-linux-x64/lib
hero-cli@0.0.1
shujing@Test-ShuJing:~$ npm install -g appium
npm WARN checkPermissions Missing write access to /home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium
/home/shujing/android/node-v6.6.0-linux-x64/lib
appium@1.6.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.12 (node_modules/appium/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 3.13.0-96-generic
npm ERR! argv "/home/shujing/android/node-v6.6.0-linux-x64/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! node v6.6.0
npm ERR! npm v3.10.8
npm ERR! path /home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium' }
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! /home/shujing/npm-debug.log
shujing@Test-ShuJing:~$ sudo npm install -g appium
[sudo] password for shujing:
/home/shujing/android/node-v6.6.0-linux-x64/bin/appium -> /home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium/build/lib/main.js
/home/shujing/android/node-v6.6.0-linux-x64/lib
appium@1.6.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.12 (node_modules/appium/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
复制代码
作者:
海海豚
时间:
2018-8-22 10:13
https://blog.csdn.net/heart_1014/article/details/52956200
可以参考这个链接重新安装试试
作者:
梦想家
时间:
2018-8-22 10:39
1、安装node
apt-get install node.js
2、安装npm
apt-get install npm
3、安装cnpm
npm install -g cnpm
创建链接:ln -s cnpm安装路径 /usr/bin/cnpm
cnpm安装路径的寻找:找到node安装目录,则可以找到cnpm的安装目录
4、安装appium
cnpm install -g appium
创建链接:ln -s appium安装路径 /usr/bin/appium
5、启动Appium
输出如下,则启动正常
作者:
jingzizx
时间:
2018-8-22 12:26
怎么看起来像是顺序有问题
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2