0

可用于 wdio-openfin-service 的最新 npm 包是什么?我尝试安装“wdio-openfin-service”:“^8.0.1”,它给了我错误,它不存在。

安装 8.0.1 的原因:https ://github.com/wenjunche/wdio-openfin-service

npm ERR! code ETARGET
npm ERR! notarget No matching version found for wdio-openfin-service@^8.0.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\Users\userName\Scoop\persist\nodejslts\cache\_logs\2020-04-24T11_07_59_907Z-debug.log

早些时候我使用的是 1.1.1。与 wdio 4 版本配合良好的版本。但是使用 wdio 6,它会引发错误:

[0-2]  Error:  Failed to create session.
Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.

Chromedriver 是 2.34.0

以下是我的开发依赖项:

 "devDependencies": {
    "@types/chai": "^4.2.11",
    "@types/cucumber": "^6.0.1",
    "@types/js-yaml": "^3.12.0",
    "@types/openfin": "^49.0.0",
    "@wdio/cli": "^6.0.16",
    "@wdio/cucumber-framework": "^6.0.16",
    "@wdio/local-runner": "^6.0.16",
    "@wdio/sync": "^6.0.1",
    "allure-commandline": "^2.9.0",
    "babel-preset-env": "^1.7.0",
    "babel-register": "^6.26.0",
    "copyfiles": "^2.1.0",
    "node-sass-chokidar": "^1.3.3",
    "npm-run-all": "^4.1.3",
    "rimraf": "^2.6.2",
    "ts-node": "^8.6.2",
    "tsconfig-paths": "^3.9.0",
    "tslint": "^5.14.0",
    "tslint-config-wmc": "^2.0.0",
    "typescript": "^3.8.3",
    "wdio-image-comparison-service": "^1.12.2",
    "wdio-openfin-service": "^1.1.1"
  }

4

1 回答 1

0

你能试试:

"wdio-openfin-service": "git+https://github.com/wenjunche/wdio-openfin-service.git",

让我知道它是否适合你。

谢谢

于 2020-04-29T21:11:03.590 回答