npm ERR!在appium-chromedriver@4.10.1安装脚本处失败

时间:2019-03-17 09:53:59

标签: testing mobile appium-android katalon-studio

在用于移动自动化的Katalon配置过程中,我必须安装appium:

npm 6.4.1
node 10.15.3
chrome 73.0
OS : Win 10

npm install -g appium

但是chromedriver出现以下错误,安装中止:

C:\Users\user>npm install -g appium
npm WARN deprecated fsevents@2.0.1: Not Ready For Production
C:\Users\user\AppData\Roaming\npm\appium -> C:\Users\user\AppData\Roaming\npm\node_modules\appium\build\lib\main.js

> appium-chromedriver@4.10.1 install C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver
> node install-npm.js

[14:50:13] [Chromedriver Install] Installing Chromedriver version '2.31 npm install appium' for platform 'win' and architecture '32'
[14:50:13] [Chromedriver Install] Opening temp file to write 'chromedriver_win32' to...
[14:50:13] [Chromedriver Install] Opened temp file 'C:\Users\user\AppData\Local\Temp\2019217-7464-e5hxxq.aztje\chromedriver_win32.zip'
[14:50:13] [Chromedriver Install] Downloading http://npm.taobao.org/mirrors/chromedriver npm install appium-chromedriver/2.31 npm install appium/chromedriver_win32.zip...
StatusCodeError: 404 - "Not Found"
    at new StatusCodeError (C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\request-promise-core\lib\errors.js:32:15)
    at Request.plumbing.callback (C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\request-promise-core\lib\plumbing.js:104:33)
    at Request.RP$callback [as _callback] (C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at Request.self.callback (C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\request\request.js:185:22)
    at Request.emit (events.js:189:13)
    at Request.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\request\request.js:1161:10)
    at Request.emit (events.js:189:13)
    at IncomingMessage.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\appium\node_modules\request\request.js:1083:12)
    at Object.onceWrapper (events.js:277:13)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.1 (node_modules\appium\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! appium-chromedriver@4.10.1 install: `node install-npm.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appium-chromedriver@4.10.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我也设置了环境变量。

我该如何解决?

0 个答案:

没有答案