发现提示错误信息:
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稳定版本
https://nodejs.org/dist/v5.7.0/
完美解决