Installing ‘xcuitest’
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-xcuitest-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.7.0\\" from the root project\\n 1 more (appium-uiautomator2-driver)\\n\\nCould not resolve dependency:\\ndev appium-xcuitest-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-xcuitest-driver\\n dev appium-xcuitest-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-17T13_35_42_962Z-eresolve-report.txt"
}
}
STDERR:
npm verbose cli /Users/daniil.kovtun/.nvm/versions/node/v24.10.0/bin/node /Users/daniil.kovtun/.nvm/versions/node/v24.10.0/bin/npm
npm info using [email protected]
npm info using [email protected]
npm warn config global-style This option has been deprecated in favor of `–install-strategy=shallow`
npm verbose title npm install appium-xcuitest-driver
npm verbose argv “install” “–save-dev” “–no-progress” “–no-audit” “–omit” “peer” “–save-exact” “–global-style” “–no-package-lock” “appium-xcuitest-driver” “–json”
npm verbose logfile logs-max:10 dir:/Users/daniil.kovtun/.npm/_logs/2025-10-17T13_35_42_962Z-
npm verbose logfile /Users/daniil.kovtun/.npm/_logs/2025-10-17T13_35_42_962Z-debug-0.log
npm http cache https://registry.npmjs.org/@appium%2Funiversal-xml-plugin 14ms (cache hit)
npm http cache https://registry.npmjs.org/appium 4ms (cache hit)
npm http cache https://registry.npmjs.org/@headspinio%2Fappium-roku-driver 3ms (cache hit)
npm http cache https://registry.npmjs.org/appium 3ms (cache hit)
npm http cache https://registry.npmjs.org/appium-uiautomator2-driver 4ms (cache hit)
npm http cache https://registry.npmjs.org/appium 3ms (cache hit)
npm http cache https://registry.npmjs.org/appium-xcuitest-driver 6ms (cache hit)
npm http cache https://registry.npmjs.org/appium 4ms (cache hit)
npm verbose stack Error: could not resolve
npm verbose stack at PlaceDep.failPeerConflict (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:503:25)
npm verbose stack at new PlaceDep (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:157:21)
npm verbose stack at #buildDepStep (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:932:18)
npm verbose stack at async Arborist.buildIdealTree (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:182:7)
npm verbose stack at async Promise.all (index 1)
npm verbose stack at async Arborist.reify (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:117:5)
npm verbose stack at async Install.exec (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/lib/commands/install.js:150:5)
npm verbose stack at async Npm.exec (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/lib/npm.js:208:9)
npm verbose stack at async module.exports (/Users/daniil.kovtun/.nvm/versions/node/v24.10.0/lib/node_modules/npm/lib/cli/entry.js:67:5)
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.7.0” from the root project
npm error 1 more (appium-uiautomator2-driver)
npm error
npm error Could not resolve dependency:
npm error dev appium-xcuitest-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-xcuitest-driver
npm error dev appium-xcuitest-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-17T13_35_42_962Z-eresolve-report.txt
npm verbose cwd /Users/daniil.kovtun/.appium
npm verbose os Darwin 24.6.0
npm verbose node v24.10.0
npm verbose npm v11.6.1
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /Users/daniil.kovtun/.npm/_logs/2025-10-17T13_35_42_962Z-debug-0.log