Giter Site home page Giter Site logo

Comments (12)

shyam6363 avatar shyam6363 commented on May 23, 2024 1

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:

  1. Node Js with "LTS is recommended" should be installed.

During installation
-------------------

  1. Execute or open the Command prompt in "Run as administrator" Mode.

  2. 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.

  1. Verify the uiautomator installation.
    appium driver list

5.After installation we can set the ssl as "true".
npm config set strict-ssl=true

image

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on May 23, 2024

"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.

eglitise avatar eglitise commented on May 23, 2024

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.

shyam6363 avatar shyam6363 commented on May 23, 2024

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.

shyam6363 avatar shyam6363 commented on May 23, 2024

image

from appium.

shyam6363 avatar shyam6363 commented on May 23, 2024

Please help. I am stuck here.

from appium.

KazuCocoa avatar KazuCocoa commented on May 23, 2024

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.

shyam6363 avatar shyam6363 commented on May 23, 2024

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"

image

Screen_3

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.

eglitise avatar eglitise commented on May 23, 2024

Please follow the instructions properly. The variable name is APPIUM_SKIP_CHROMEDRIVER_INSTALL and the value is 1.

from appium.

shyam6363 avatar shyam6363 commented on May 23, 2024

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.

eglitise avatar eglitise commented on May 23, 2024

@shyam6363 does starting a session in the Inspector also work?

from appium.

shyam6363 avatar shyam6363 commented on May 23, 2024

Yes it's working perfectly.

Thanks

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.