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
下面是我的dev依赖项:
"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"
}发布于 2020-04-30 05:11:04
你能不能试试:
"wdio-openfin-service": "git+https://github.com/wenjunche/wdio-openfin-service.git",如果它对你有效,请告诉我。
谢谢
https://stackoverflow.com/questions/61407314
复制相似问题