【发布时间】:2021-02-19 09:51:42
【问题描述】:
我正在尝试使用wdio-v7 建立一个新项目,
首先我跑了npm init -y
然后npm install @wdio/cli --save-dev
在运行npx wdio config -y 之后,我收到了这个:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: example-test@1.0.0
npm ERR! Found: @wdio/cli@7.0.5
npm ERR! node_modules/@wdio/cli
npm ERR! dev @wdio/cli@"^7.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @wdio/cli@"^6.0.0" from wdio-chromedriver-service@6.0.4
npm ERR! node_modules/wdio-chromedriver-service
npm ERR! dev wdio-chromedriver-service@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
Initialize WebdriverIO and setup configuration in your current project.
Documentation: https://webdriver.io
@wdio/cli (v7.0.5)
我尝试使用--force, or --legacy-peer-deps,但没有成功。
【问题讨论】:
标签: webdriver-io