[Appium]启动报错问题" error: uncaughtException: Cannot find module 'internal/fs' "

发现提示错误信息:

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/

完美解决

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容