appium / appium-uiautomator2-driver

Appium driver for Android UIAutomator2
Apache License 2.0
572 stars 173 forks source link

appium driver install uiautomator2 Installation error #763

Closed wholegale39 closed 5 months ago

wholegale39 commented 5 months ago

PS C:\Users\wch> node -v v18.20.2 PS C:\Users\wch> npm -v 10.5.0 PS C:\Users\wch.xdja> appium -v 2.0.0 PS C:\Users\wch> appium driver install uiautomator2 ✖ Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver' 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 EINVAL.

STDOUT:

STDERR:

or

PS C:\Users\wch.xdja> appium -v 2.5.2 PS C:\Users\wch.xdja> PS C:\Users\wch.xdja> PS C:\Users\wch.xdja> appium driver install uiautomator2 ✖ Checking if 'appium-uiautomator2-driver' is compatible Error: npm command 'info appium-uiautomator2-driver peerDependencies dependencies --json' failed with code EINVAL.

STDOUT:

STDERR:

I have tried other versions, and the above problems will also occur

mykola-mokhnach commented 5 months ago

Check https://discuss.appium.io/t/appium-driver-install-fails-while-checking-drivers-compatibility/42209

wholegale39 commented 5 months ago

It works, thank you so much!