AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
318 stars 98 forks source link

Appium Device Farm Plugin Installation Failed #1343

Open gopekanna opened 2 weeks ago

gopekanna commented 2 weeks ago

Describe the bug

I'm not able to install the device farm plugin using the command appium plugin install --source=npm appium-device-farm in which the below exception thrown in the windows command prompt. I'm able to install the appium and the required drivers using the npm command.

Please find the attached logs for your perusal. 2024-08-27T09_58_56_558Z-debug-0.log

Error information

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-device-farm --json' failed with code 4294963238.

STDOUT: { "error": { "code": "ENOENT", "summary": "An unknown git error occurred", "detail": "This is related to npm not being able to find a file." } }

STDERR: npm warn config global-style This option has been deprecated in favor of --install-strategy=shallow npm error code ENOENT npm error syscall spawn git npm error path git npm error errno -4058 npm error enoent An unknown git error occurred npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: C:\Users\gkannan\AppData\Local\npm-cache_logs\2024-08-27T09_58_56_558Z-debug-0.log

Environment

  1. Appium version 2.11.3
  2. Node.js version 22.7.0
  3. Npm version 10.8.2
  4. Android / iOS
  5. Real device or emulator/simulator: Real
  6. Operating System: Windows Server 2022 Standard
gopekanna commented 2 weeks ago

I've tried these command 'npm uninstall -g appium && npm install -g appium@next' and removed the .appium directory but still i'm facing the same issue if I tried to install the plugin

C:\Users\gkannan>npm uninstall -g appium && npm install -g appium@next

removed 429 packages in 19s npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated typedoc-plugin-resolve-crossmodule-references@0.3.3: Upgrade to typedoc >= 0.24 and remove typedoc-plugin-resolve-crossmodule-references from your dependencies npm warn deprecated npmlog@7.0.1: This package is no longer supported. npm warn deprecated rimraf@2.4.5: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@6.0.4: Glob versions prior to v9 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated are-we-there-yet@4.0.2: This package is no longer supported. npm warn deprecated gauge@5.0.2: This package is no longer supported.

added 501 packages in 2m

64 packages are looking for funding run npm fund for details


C:\Users\gkannan>appium plugin install --source=npm appium-device-farm × Installing 'appium-device-farm' 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-device-farm --json' failed with code 4294963238.

STDOUT: { "error": { "code": "ENOENT", "summary": "An unknown git error occurred", "detail": "This is related to npm not being able to find a file." } }

STDERR: npm warn config global-style This option has been deprecated in favor of --install-strategy=shallow npm error code ENOENT npm error syscall spawn git npm error path git npm error errno -4058 npm error enoent An unknown git error occurred npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: C:\Users\gkannan\AppData\Local\npm-cache_logs\2024-08-28T03_58_10_987Z-debug-0.log

gopekanna commented 2 weeks ago

Please note, appium-device-farm plugin v9.2.2 only installed successfully in the windows server machine; next versions are not getting installed and please refer the above exception as mentioned. GitHub build verified signature is getting missed after 9.2.2 version.

C:\Users\gkannan>appium plugin install --source=npm appium-device-farm@9.2.2 √ Checking if 'appium-device-farm' is compatible √ Installing 'appium-device-farm@9.2.2' i Plugin device-farm@9.2.2 successfully installed