51Testing软件测试论坛

标题: Day3-5测试积点任务 [打印本页]

作者: 测试积点老人    时间: 2018-8-21 10:46
标题: Day3-5测试积点任务
问题:
求教ubuntu14.04中安装appnium失败
  1. /home/shujing/android/node-v6.6.0-linux-x64/lib
  2. hero-cli@0.0.1

  3. shujing@Test-ShuJing:~$ npm install -g appium
  4. npm WARN checkPermissions Missing write access to /home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium
  5. /home/shujing/android/node-v6.6.0-linux-x64/lib
  6. appium@1.6.0

  7. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.12 (node_modules/appium/node_modules/fsevents):
  8. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  9. npm ERR! Linux 3.13.0-96-generic
  10. npm ERR! argv "/home/shujing/android/node-v6.6.0-linux-x64/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
  11. npm ERR! node v6.6.0
  12. npm ERR! npm  v3.10.8
  13. npm ERR! path /home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium
  14. npm ERR! code EACCES
  15. npm ERR! errno -13
  16. npm ERR! syscall access

  17. npm ERR! Error: EACCES: permission denied, access '/home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium'
  18. npm ERR!     at Error (native)
  19. npm ERR!  { Error: EACCES: permission denied, access '/home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium'
  20. npm ERR!     at Error (native)
  21. npm ERR!   errno: -13,
  22. npm ERR!   code: 'EACCES',
  23. npm ERR!   syscall: 'access',
  24. npm ERR!   path: '/home/shujing/android/node-v6.6.0-linux-x64/lib/node_modules/appium' }
  25. npm ERR!
  26. npm ERR! Please try running this command again as root/Administrator.

  27. npm ERR! Please include the following file with any support request:
  28. npm ERR!     /home/shujing/npm-debug.log
  29. shujing@Test-ShuJing:~$ sudo npm install -g appium
  30. [sudo] password for shujing:
  31. /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
  32. /home/shujing/android/node-v6.6.0-linux-x64/lib
  33. appium@1.6.0

  34. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.12 (node_modules/appium/node_modules/fsevents):
  35. 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