Hello again,
I’ve been getting along fine with Appium but now I can’t resolve this error. I’m opening an Appium port but have no drivers installed, so I am running the command to install said drivers.
appium driver install uiautomator2
This is returning:
Installing ‘uiautomator2’ using NPM install spec ‘appium-uiautomator2-driver’
Error: Encountered an error when installing package: npm command ‘install --save-dev appium-uiautomator2-driver --json’ failed with code 1.
STDOUT:
STDERR:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/appium
npm ERR! [email protected]"^1.22.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]"^2.0.0-beta.40" from [email protected]
npm ERR! node_modules/appium-uiautomator2-driver
npm ERR! dev [email protected]"" 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!
npm ERR! See /Users/chaffe/.npm/eresolve-report.txt for a full report.
{
“error”: {
“code”: “ERESOLVE”,
“summary”: “unable to resolve dependency tree”,
“detail”: “\nWhile resolving: [email protected]\nFound: [email protected]\nnode_modules/appium\n [email protected]”^1.22.3" from the root project\n\nCould not resolve dependency:\npeer [email protected]"^2.0.0-beta.40" from [email protected]\nnode_modules/appium-uiautomator2-driver\n dev [email protected]"" from the root project\n\nFix the upstream dependency conflict, or retry\nthis command with --force, or --legacy-peer-deps\nto accept an incorrect (and potentially broken) dependency resolution.\n\nSee /Users/chaffe/.npm/eresolve-report.txt for a full report."
}
}
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chaffe/.npm/_logs/2022-11-17T21_06_52_000Z-debug-0.log
That’s the full error. Honestly, not sure what I can do next to resolve the dependency tree error so would appreciate any help!