1. 程式人生 > >appium error: uncaughtException: Cannot find module 'internal/fs'

appium error: uncaughtException: Cannot find module 'internal/fs'

解決方法:

是因為版本不匹配. 我裝的appium版本是1.4.16,而node版本是v7.3.0,把node解除安裝了,裝v6.9.4,完美解決~

報錯如下:

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\no

de_modules\appium, execPath=C:\Program Files\nodejs\node.exe, version=v7.9.0, argv=[C:\Program Files\nodejs\node.exe, D:\appium\node_modules\appium\bin\appium.j
s], rss=98328576, heapTotal=77393920, heapUsed=50451736, external=666939, loadavg=[0, 0, 0], uptime=34546.8093825, trace=[column=15, file=module.js, function=Fu
nction.Module._resolveFilename, line=470, method=Module._resolveFilename, native=false, column=25, file=module.js, function=Function.Module._load, line=418, met
hod=Module._load, native=false, column=17, file=module.js, function=Module.require, line=498, method=require, native=false, column=19, file=internal/module.js,
function=require, line=20, method=null, native=false, column=20, file=evalmachine.<anonymous>, function=null, line=18, method=null, native=false, column=1, file
=D:\appium\node_modules\appium\node_modules\md5calculator\node_modules\unzip\node_modules\fstream\node_modules\graceful-fs\fs.js, function=, line=11, method=nul
l, native=false, column=32, file=module.js, function=Module._compile, line=571, method=_compile, native=false, column=10, file=module.js, function=Object.Module
._extensions..js, line=580, method=Module._extensions..js, native=false, column=32, file=module.js, function=Module.load, line=488, method=load, native=false, c

olumn=12, file=module.js, function=tryModuleLoad, line=447, method=null, native=false, column=3, file=module.js, function=Function.Module._load, line=439, metho