Comments (12)
Finally, Thanks.
Appium v2.5.4
Node: 18.20.2
npm -version : 10.5.2
Before starting the installation, refer the following documentation
Link: https://appium.io/docs/en/2.5/quickstart/requirements/
Note:
- Node Js with "LTS is recommended" should be installed.
During installation
-------------------
-
Execute or open the Command prompt in "Run as administrator" Mode.
-
While installing appium, set ssl false.i.e npm config set strict-ssl=false
3.While installing the appium,"set APPIUM_SKIP_CHROMEDRIVER_INSTALL=1" needs to set as environment variable
& then "appium driver install uiautomator2" needs to be used.
- Verify the uiautomator installation.
appium driver list
5.After installation we can set the ssl as "true".
npm config set strict-ssl=true
from appium.
"detail": "C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js\n[15:08:34] Error installing Chromedriver: unable to verify the first certificate\n[15:08:35] Error: unable to verify the first certificate\n at Function.AxiosError.from
It looks like there is an issue with your network or the google server, so it couldn't verify the remote certificate. Please follow
https://github.com/appium/appium-uiautomator2-driver?tab=readme-ov-file#troubleshooting-chromedriver-download-issues
from appium.
Also, please follow the Inspector quickstart instructions. You do not need to change Remote Path
to /wd/hub
if you are launching Appium with appium --allow-cors
. You also need to specify valid capabilities.
from appium.
I am unable to install uiautomator2 with npm as well.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\appium',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\appium'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\appium'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\portscanner',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\portscanner'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\portscanner'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\winston-transport\node_modules'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\winston-transport\node_modules'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js
npm ERR! [18:58:39] Error installing Chromedriver: unable to verify the first certificate
npm ERR! [18:58:39] Error: unable to verify the first certificate
npm ERR! at Function.AxiosError.from (C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
npm ERR! at RedirectableRequest.handleRequestError (C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:610:25)
npm ERR! at RedirectableRequest.emit (node:events:529:35)
npm ERR! at ClientRequest.eventHandlers. (C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)
npm ERR! at ClientRequest.emit (node:events:517:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:501:9)
npm ERR! at TLSSocket.emit (node:events:517:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! at Axios.request (C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! at retrieveData (C:\Users\Healthcubed\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)
npm ERR! [18:58:39] Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable.
npm ERR! A complete log of this run can be found in: C:\Users\Healthcubed\AppData\Local\npm-cache_logs\2024-04-22T13_28_25_408Z-debug-0.log
from appium.
from appium.
Please help. I am stuck here.
from appium.
Did you set APPIUM_SKIP_CHROMEDRIVER_INSTALL
as #20026 (comment) (https://github.com/appium/appium-uiautomator2-driver?tab=readme-ov-file#troubleshooting-chromedriver-download-issues) to avoid Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable.?
from appium.
Hi,
My Appium version is v2.5.4
Node version is 18.20.2
Npm version is 10.5.2
I set the environment variable to "APPIUM_SKIP_CHROMEDRIVER_INSTALL". Still i am unable to install "uiautomator2"
Logs
C:>appium driver install uiautomator2
√ Checking if 'appium-uiautomator2-driver' is compatible
× 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 1.
STDOUT:
{
"error": {
"code": 1,
"summary": "command failed",
"detail": "C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js\n[14:01:15] Error installing Chromedriver: unable to verify the first certificate\n[14:01:15] Error: unable to verify the first certificate\n at Function.AxiosError.from (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)\n at RedirectableRequest.handleRequestError (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:610:25)\n at RedirectableRequest.emit (node:events:529:35)\n at ClientRequest.eventHandlers. (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)\n at ClientRequest.emit (node:events:517:28)\n at TLSSocket.socketErrorListener (node:_http_client:501:9)\n at TLSSocket.emit (node:events:517:28)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at retrieveData (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)\n[14:01:15] Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable."
}
}
STDERR:
npm WARN config global-style This option has been deprecated in favor of --install-strategy=shallow
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\@DeviceFarmer',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules@devicefarmer'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\@DeviceFarmer'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\resolve\test\resolver'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\resolve\test\resolver'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\spdy-transport'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\spdy-transport'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js
npm ERR! [14:01:15] Error installing Chromedriver: unable to verify the first certificate
npm ERR! [14:01:15] Error: unable to verify the first certificate
npm ERR! at Function.AxiosError.from (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
npm ERR! at RedirectableRequest.handleRequestError (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:610:25)
npm ERR! at RedirectableRequest.emit (node:events:529:35)
npm ERR! at ClientRequest.eventHandlers. (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)
npm ERR! at ClientRequest.emit (node:events:517:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:501:9)
npm ERR! at TLSSocket.emit (node:events:517:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! at Axios.request (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! at retrieveData (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)
npm ERR! [14:01:15] Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable.
npm ERR! A complete log of this run can be found in: C:\Users\Healthcubed\AppData\Local\npm-cache_logs\2024-04-23T08_30_37_242Z-debug-0.log
from appium.
Please follow the instructions properly. The variable name is APPIUM_SKIP_CHROMEDRIVER_INSTALL
and the value is 1
.
from appium.
Hi eglitise.
I tried but it's still not happening. Can you please show step by step?
However here's my result
C:\Users\Healthcubed>set CHROME_SKIP
CHROME_SKIP=APPIUM_SKIP_CHROMEDRIVER_INSTALL=1
C:\Users\Healthcubed>appium driver install uiautomator2
√ Checking if 'appium-uiautomator2-driver' is compatible
× 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 1.
STDOUT:
{
"error": {
"code": 1,
"summary": "command failed",
"detail": "C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js\n[15:55:22] Error installing Chromedriver: unable to verify the first certificate\n[15:55:22] Error: unable to verify the first certificate\n at Function.AxiosError.from (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)\n at RedirectableRequest.handleRequestError (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:610:25)\n at RedirectableRequest.emit (node:events:529:35)\n at ClientRequest.eventHandlers. (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)\n at ClientRequest.emit (node:events:517:28)\n at TLSSocket.socketErrorListener (node:_http_client:501:9)\n at TLSSocket.emit (node:events:517:28)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at retrieveData (C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)\n[15:55:22] Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable."
}
}
STDERR:
npm WARN config global-style This option has been deprecated in favor of --install-strategy=shallow
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\hpack.js'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Healthcubed\.appium\node_modules\appium-uiautomator2-driver\node_modules\hpack.js'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js
npm ERR! [15:55:22] Error installing Chromedriver: unable to verify the first certificate
npm ERR! [15:55:22] Error: unable to verify the first certificate
npm ERR! at Function.AxiosError.from (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
npm ERR! at RedirectableRequest.handleRequestError (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:610:25)
npm ERR! at RedirectableRequest.emit (node:events:529:35)
npm ERR! at ClientRequest.eventHandlers. (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)
npm ERR! at ClientRequest.emit (node:events:517:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:501:9)
npm ERR! at TLSSocket.emit (node:events:517:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! at Axios.request (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! at retrieveData (C:\Users\Healthcubed.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)
npm ERR! [15:55:22] Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable.
npm ERR! A complete log of this run can be found in: C:\Users\Healthcubed\AppData\Local\npm-cache_logs\2024-04-23T10_24_43_094Z-debug-0.log
from appium.
@shyam6363 does starting a session in the Inspector also work?
from appium.
Yes it's working perfectly.
Thanks
from appium.
Related Issues (20)
- bug: Scroll on Android don't work HOT 1
- [Feat]: Can I specify my own registry in "appium driver install --source=npm" HOT 4
- universal-xml plugin issue with webview mode HOT 7
- Appium server crashes and shuts down on first test HOT 21
- Real device architecture is not supported application after upgraded xcuitest driver to 7.15.1 HOT 6
- Nothing happen after Responding to client with driver.createSession() HOT 7
- Delete key on iOS keyboard is not working HOT 10
- [Feat]: Support for custom usbmuxd socket path or url HOT 1
- "Error:Appium Settings app is not running after 30000ms" while running emulator in headless in Android version 13 and 14 HOT 3
- bug: XCUITest-driver invalid platform detection when ipa have more than 1 bundle HOT 3
- Unable to resolve the launchable activity of 'com.google.android.youtube' HOT 8
- Appium accessibility id's different on android to iOS HOT 1
- bug: Appium Inspector loads some app screens slowly/not at all HOT 1
- Possible bug - I get certain errors ONLY when "isHeadless" is set to true HOT 2
- bug: Appium XCUITest crashes the iOS app on clearing the input XCUIElementTypeTextField HOT 3
- [iOS] Clicking on a button is success but nothing happens on the UI. HOT 7
- The picture stream of ios device is displayed with black edges HOT 3
- Appium Crash after Performing cleanup HOT 7
- PrebuiltWDA for iOS 17 not working well and always got Timeout HOT 12
- [Feat]: help initial steps to use appium HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium.