第一种 Appium-Server v1.4.16

①环境配置:(PS:本话题appium为老版本Appium-Server v1.4.16)
一. 安装node.js : https://nodejs.org/en/download/
二. 下载android-sdk : http://www.cnblogs.com/puresoul/p/4597211.html
三. 安装Appium : https://bitbucket.org/appium/appium.app/downloads/
四. 以上配置环境变量
五. 检查环境:
cmd命令窗口> node -v (查看node版本)
cmd命令窗口>appium-doctor (检查appium环境)
全部检查OK后

②此时运行appium:
cmd命令窗口> appium --session-override --no-reset (--no-reset 即可避免执行用例的时候再次安装app,--session-override 不必每次重启session)

③发现提示错误信息:
error: uncaughtException: Cannot find module 'internal/fs' date=Thu May 17 2018 20:39:28 GMT+0800 (中国标准时间), pid=8620, uid=null, gid=null, cwd=D:\appium\node_modules\appium,……

④解决方法:
Appium-Server v1.4.16版本较低,所以安装node.js版本不宜过高,选择稳定使用较多的即可,否则会报 error: uncaughtException: Cannot find module 'internal/fs'错误
安装v6.9.4 v6.11.1版本皆可: https://nodejs.org/en/download/releases/

node v6版本下启动appium后,会出现:
(node:16008) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
原因:是因为graceful-fs 在 node V6 下不支持,需要node降级或者安装:
安装v5.6.0 v5.7.0稳定版本

⑤完美解决

第二种

Appium-Desktop

appium-desktop 下载地址:https://github.com/appium/appium-desktop/releases

根据自己的平台选择相关的包进行下载。windows下载选择了appium-desktop-setup-1.7.1.exe

安装过程双击 exe 文件,然后,等待安装完就好了

Appium-Desktop兼容高版本的node.js  建议安装最新版或者稳定版node.js

转载于:https://www.cnblogs.com/joekk01/p/9923902.html

[Appium]启动报错问题 error: uncaughtException: Cannot find module 'internal/fs'相关推荐

  1. python运行启动报错解决方法_51testing:iOS自动化测试的那些干货:关于appium启动报错问题的解决办法...

    原标题:51testing:iOS自动化测试的那些干货:关于appium启动报错问题的解决办法 我们在进行iOS Appium自动化测试的时候,会遇到环境配置.兼容使用问题,这里做个总结,以避免后续踩 ...

  2. ubuntu启动报错 hardware error cpu 0 machine check 0 Bank 6、ACPI BIOS Error (bug)Could not resolve symbol

    @[TOC](ubuntu启动报错 hardware error cpu 0 machine check 0 Bank 6.ACPI BIOS Error (bug)Could not resolve ...

  3. IDEA启动报错Plugin Error Problems found loading plugins: Plugin “GlassFish Integration“ was not...

    IDEA启动报错Plugin Error的解决办法: Problems found loading plugins: Plugin "Persistence Frameworks Suppo ...

  4. SpringBoot项目启动 报错:Error executing Maven. end tag name </settings> must match start tag name

    SpringBoot项目启动 报错:Error executing Maven. end tag name must match start tag name from line xxx 第一次创建s ...

  5. Phoenix 启动报错: Error: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate

    Phoenix 启动报错: Error: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate c ...

  6. Nginx启动报错:error while loading shared libraries: libpcre.so.1

    1. Nginx的安装 1.1 准备安装包 pcre-8.37.tar.gz openssl-1.0.1t.tar.gz zlib-1.2.8.tar.gz nginx-1.17.1.tar.gz 利 ...

  7. (linux)mongodb启动报错【ERROR:child process failed, exited with error number 1】

    这里写自定义目录标题 mongodb启动报错 报错提示 处理方法 mongodb启动报错 报错提示 ERROR:child process failed, exited with error numb ...

  8. RabbitMQ 启动报错:Error: unable to perform an operation on node ‘rabbit@***‘. Please see diagnostics...

    问题描述: 安装完 ErLang 和 RabbitMQ 之后执行 rabbitmqctl status 报错: Error: unable to perform an operation on nod ...

  9. mysql报错5_mysql5.5 启动报错:ERROR!_MySQL

    bitsCN.com 在FreeBSD中启动mysql时报错,ERROR! The server quit without updating PID file,通常这是可以查看数据库目录下的.err日 ...

最新文章

  1. 手机淘宝 521 性能优化项目揭秘
  2. springboot微服务 java b2b2c电子商务系统(一)服务的注册与发现(Eureka)
  3. Ambari安装client报错OSError:[Error 17] File exists
  4. 功成身退:AMD Mantle不再优化了
  5. 暴力破解sshd服务的密码的小技巧
  6. 玻璃质感_现代质感的顶层公寓,玻璃扶手让楼梯整个变透明!
  7. 区块链基础知识的归纳与总结
  8. java 自动化报表_SpringMvc JDBC jQWidgets项目案例JasperReport自动化报表系统
  9. 红米手机html文件,红米手机怎么传文件到电脑
  10. EasyExcel Invalid row number (65536) outside allowable range
  11. STM32CubeMX SDRAM的使用(二)
  12. elementui[el-table]表格全选操作以及翻页选中取消相关效果
  13. 信息收集--Nmap
  14. [转载] js 下获取子元素的方法 -- 李富生
  15. 家庭机器人要爆发?看客拍手叫好,戏子才知冷暖
  16. android arcgis定位,arcgis android之定位功能的示例代码
  17. CAN总线35周年特别篇 -- CAN总线的前世今生
  18. 一文带你读懂大疆精灵4多光谱版无人机
  19. springboot所有配置文件中英文对照(全)
  20. 中国十大服装批发市场详细看点

热门文章

  1. 趣图:程序猿也花心,有图为证
  2. 理解JavaScript中的异步和同步
  3. 计算机图形编程基础,Windows图形编程基础.ppt
  4. 海康视频流html无插件播放,RTSP_ONVIF协议视频流媒体网页无插件直播服务器EasyNVR配置海康大华等安防摄像头通道地址的方法...
  5. 任务三 配置与应用远程服务
  6. Android studio 注册页面ui设计
  7. 实现redis哨兵,模拟master故障场景
  8. 敲代码时如何快速移动光标_数控加工中心编程入门知识,半小时快速入门!超简洁明了!...
  9. linux 读取png图片大小,使用libpng读取PNG图片像素数据
  10. 企业数字化转型路上的贴身管家——云BI