question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when run appium 2.0 for UIAutomator2 installation, "--chromedriver-skip-install" is not working

See original GitHub issue

The problem

I tried to install uiautomator2 driver with command: node . driver install uiautomator2 --chromedriver-skip-install --appium-home="C:\temp"

Environment

  • Appium version (or git revision) that exhibits the issue: Appium 2.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.20
  • Desktop OS/version used to run Appium: Windows 10
  • Node.js version (unless using Appium.app|exe): 16
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: None
  • Real device or emulator/simulator: None
  • Appium CLI or Appium.app|exe: node . driver install uiautomator2 --chromedriver-skip-install --appium-home="C:\temp"

Link to Appium logs

C:\Users\cheruixi\IdeaProjects\appium\packages\appium>node . driver install uiautomator2 --chromedriver-skip-install --appium-home=“C:\temp” usage: appium [-h] [-v] {server,driver,plugin} … appium: error: unrecognized arguments: --chromedriver-skip-install

Code To Reproduce Issue [ Good To Have ]

node . driver install uiautomator2 --chromedriver-skip-install --appium-home="C:\temp" with Appium 2.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
StephanB75commented, Nov 15, 2021

On Mac it works with a enviroment variable

export APPIUM_SKIP_CHROMEDRIVER_INSTALL=true

I think it should also work on PC with an enviroment variable

here was the original comment : https://github.com/appium/appium/discussions/15812#discussioncomment-1299739

0reactions
jlippscommented, Nov 16, 2021

yes, change environment variable can fix the issue, but that to say, the parameter “–chromedriver-skip-install” not working any more?

This flag will probably not exist in Appium 2.0. The reason is that it gets turned into an NPM install flag, but when using the appium driver install interface there is no way to send NPM install flags in. Given that another solution exists (the env var solution), we’ll probably just require the use of that solution moving forward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium 2 - Says UIAutomator2 installed. Then cant find it...?
It is happening to my after node upgrade to v17.8.0 and upgrade UIAutomator to v2.0.5. Now it is fixed after installing UIAutomator v2.0.1...
Read more >
Appium driver install uiautomator2 can't install - Support
Hi. When I try to install uiautomator2 on Mac I have this error appium driver install uiautomator2 info Appium Setting NODE_PATH to ...
Read more >
Error installing uiautomator2 driver with Appium - Stack Overflow
Seems to be a problem with appium@2.0.0-beta.41. Workaround was to install npm v6: $ npm -g install npm@6. after that I could install...
Read more >
Installing Appium 2.0 and the Driver and Plugins CLI - HeadSpin
Before we get into the details of installing and running Appium 2.0, ... With Appium 2.0, the code for these drivers will no...
Read more >
Local Android Devices - UiPath Documentation Portal
appium driver list - lists installed drivers (recommended for Appium 2.0); adb devices - lists the connected devices; adb start-server ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found