我正在尝试安装appium与webdriverIO版本8
这是我为清晰起见制作的视频
我在设置webdriver8配置时回答了以下问题
===============================
🤖 WDIO Configuration Wizard 🧙
===============================
? Where should your tests be launched? local - for e2e testing of web and mobile applications
? Where is your automation backend located? On my local machine
? Which framework do you want to use? Mocha (https://mochajs.org/)
? Do you want to use a compiler? No!
? Do you want WebdriverIO to autogenerate some test files? No
? Which reporter do you want to use? spec
? Do you want to add a plugin to your test setup?
? Do you want to add a service to your test setup? appium
? What is the base url? http://localhost
? Do you want me to run `npm install` Yes
它开始安装,然后我得到以下错误信息。
Documentation: https://webdriver.io
@wdio/cli (v8.1.0)
Error: ⚠️ Couldn't add script to package.json: Error: Error calling: npm pkg set scripts.wdio=wdio run ./wdio.conf.js
at ChildProcess.<anonymous> (file:///Users/jacquelinegeorge/Documents/WebdriverIOPOC/webdriver-appium-v8/node_modules/@wdio/cli/build/utils.js:506:31)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
at createWDIOScript (file:///Users/jacquelinegeorge/Documents/WebdriverIOPOC/webdriver-appium-v8/node_modules/@wdio/cli/build/utils.js:676:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runConfigCommand (file:///Users/jacquelinegeorge/Documents/WebdriverIOPOC/webdriver-appium-v8/node_modules/@wdio/cli/build/commands/config.js:118:5)
at async Object.handler (file:///Users/jacquelinegeorge/Documents/WebdriverIOPOC/webdriver-appium-v8/node_modules/@wdio/cli/build/commands/config.js:126:5)
⚠️ Ups, something went wrong: Error calling: npx wdio config!
我完全糊涂了。我做错了什么,我该如何解决这个问题?
我在WebdriverIO Dev中提出了一个问题,这就是我们如何修复它的