TypeError: androidHelpers.getJavaVersion is not a function
at doInstall (/usr/local/lib/node_modules/appium/node_modules/_appium-selendroid-driver@1.13.4@appium-selendroid-driver/bin/install.js:21:18)
at Object. (/usr/local/lib/node_modules/appium/node_modules/_appium-selendroid-driver@1.13.4@appium-selendroid-driver/bin/install.js:63:3)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint as runMain
at internal/main/run_main_module.js:17:47
[npminstall:runscript:error] appium-selendroid-driver@1.x scripts.install run "node ./bin/install.js" error: Error [RunScriptError]: Run "sh -c node ./bin/install.js" error, exit code 1
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (events.js:321:20)
at maybeClose (internal/child_process.js:1026:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
name: 'RunScriptError',
stdio: [Object]
}
Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "sh -c node ./bin/install.js" error, exit code 1
单独执行
appium-selendroid-driver@1.13.4@appium-selendroid-driver/bin/install.js 报同样的错误
java 版本是 1.8.0_101