Can't install [email protected] on Appium 3

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:

:multiply: Installing ‘uiautomator2’

Error: :multiply: 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.

3 things:

  1. You should read both of these files to see if there is a good solution or better error in there
  2. Lot of references to older Appium versions in there. I have resolved errors like this in the past by removing all the old Appium versions and reinstalling appium.
  3. I always suggest using Node Version Manager:

This will let you install a new version of Node (clean) and try it out to make sure there aren’t any problems before commiting to the new Node version.

Hope that helps!

Thanks for the reply, but I already checked logs and installed newest node and npm versions from scratch, removed old appium versions, but nothing did help…

Did you get this to work? If not (or if anyone else has the problem) try deleting the ~/.appium directory:

rm -rf ~/.appium

The reinstall Appium from scratch

npm install -g appium@latest

This worked for me.