问题遇到的现象和发生背景
下载4/5时发生
问题相关代码,请勿粘贴截图
运行结果及报错内容
data: '\n' +
'\n' +
' NoSuchKey
\n' +
' The specified key does not exist.\n' +
' 6284B39D4A9D98353205D764\n' +
' npmmirror.oss-cn-shanghai.aliyuncs.com\n' +
' binaries/chromedriver\n' +
'\n'
}
}
[16:51:40] Downloading Chromedriver can be skipped by using the '--chromedriver-skip-install' flag or setting the 'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable.
[npminstall:runscript:error] appium-android-driver@4.54.0 › appium-chromedriver@^4.13.0 scripts.postinstall run "node install-npm.js" error: Error [RunScriptError]: Run "C:\Windows\system32\cmd.exe /d /s /c node install-npm.js" error, exit code 1
at ChildProcess. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
stdio: [Object],
exitcode: 1
}
Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node install-npm.js" error, exit code 1
RunScriptError: Run "C:\Windows\system32\cmd.exe /d /s /c node install-npm.js" error, exit code 1
at ChildProcess. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npminstall version: 6.2.0
npminstall args: C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Administrator.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com/ -g appium