Hi, I’ve update my node to 24.10.0 to try new Appium v 3.1.0, but when I try to install uiautomator driver I’m getting next error:
Installing ‘uiautomator2’
Error:
Encountered an error when installing package: npm command ‘install --save-dev --no-progress --no-audit --omit=peer --save-exact --global-style --no-package-lock appium-uiautomator2-driver --json’ failed with code 1.
STDOUT:
{
“error”: {
"code": "ERESOLVE",
"summary": "could not resolve",
"detail": "While resolving: undefined@undefined\\nFound: [email protected]\\nnode_modules/appium\\n peer appium@\\"^2.0.0-beta.35\\" from @appium/[email protected]\\n node_modules/@appium/universal-xml-plugin\\n dev @appium/universal-xml-plugin@\\"1.0.16\\" from the root project\\n peer appium@\\"^2.0.0\\" from @headspinio/[email protected]\\n node_modules/@headspinio/appium-roku-driver\\n dev @headspinio/appium-roku-driver@\\"2.6.0\\" from the root project\\n 1 more (appium-flutter-driver)\\n\\nCould not resolve dependency:\\ndev appium-uiautomator2-driver@\\"\*\\" from the root project\\n\\nConflicting peer dependency: [email protected]\\nnode_modules/appium\\n peer appium@\\"^3.0.0-rc.2\\" from [email protected]\\n node_modules/appium-uiautomator2-driver\\n dev appium-uiautomator2-driver@\\"\*\\" 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\\n\\nFor a full report see:\\n/Users/daniil.kovtun/.npm/\_logs/2025-10-17T12_24_12_326Z-eresolve-report.txt"
}
}
STDERR:
npm warn config global-style This option has been deprecated in favor of `–install-strategy=shallow`
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: undefined@undefined
npm error Found: [email protected]
npm error node_modules/appium
npm error peer appium@“^2.0.0-beta.35” from @appium/[email protected]
npm error node_modules/@appium/universal-xml-plugin
npm error dev @appium/universal-xml-plugin@“1.0.16” from the root project
npm error peer appium@“^2.0.0” from @headspinio/[email protected]
npm error node_modules/@headspinio/appium-roku-driver
npm error dev @headspinio/appium-roku-driver@“2.6.0” from the root project
npm error 1 more (appium-flutter-driver)
npm error
npm error Could not resolve dependency:
npm error dev appium-uiautomator2-driver@“*” from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/appium
npm error peer appium@“^3.0.0-rc.2” from [email protected]
npm error node_modules/appium-uiautomator2-driver
npm error dev appium-uiautomator2-driver@“*” from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/daniil.kovtun/.npm/_logs/2025-10-17T12_24_12_326Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/daniil.kovtun/.npm/_logs/2025-10-17T12_24_12_326Z-debug-0.log
Would be grateful for any solution.