VUE E2E Unable to create new service解决方案

VUE E2E Unable to create new service解决方案

  • VUE E2E Unable to create new service解决方案
    • 问题
    • 解决方法

VUE E2E Unable to create new service解决方案

问题

初始化vue项目时卡在下载chromedriver:

vue init webpack hellowrold

Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
Downloading from file:  https://chromedriver.storage.googleapis.com/2.46/chromedriver_win32.zip
Saving to file: C:\Users\bin.he\AppData\Local\Temp\2.46\chromedriver\chromedriver_win32.zip

之后执行vue run e2e 报如下错误:

Running:  default e2e tests

Error retrieving a new session from the selenium server

Connection refused! Is selenium server started?
{ value:
   { message:
      'Unable to create new service: ChromeDriverService\nBuild info: version: \'3.141.59\', revision: \'e82be7d358\', time: \'2018-11-14T08:25:53\'\nSystem info: host: \'PC1804109\', ip: \'10.27.247.177\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_201\'\nDriver info: driver.version: unknown',
     error: 'session not created' },
  status: 33 }

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] e2e: `node test/e2e/runner.js`
npm ERR! Exit status 1

解决方法

重新安装chromedirver

npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver

你可能感兴趣的:(VUE)