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
340 stars 102 forks source link

Error while running appium plugin install --source=npm appium-device-farm command #1305

Closed Hammad1954 closed 2 months ago

Hammad1954 commented 2 months ago

After running appium plugin install --source=npm appium-device-farm command to configure appium device farm

getting below error:

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

Environment

  1. Appium version --2.11.3
  2. Last Appium version that did not exhibit the issue (if applicable): Not Applicable as trying first time
  3. Node.js version (unless using Appium.app|exe): -- v18.20.4 also tried on 22
  4. Npm or Yarn package manager: --10.7.0
  5. Mobile platform/version under test: iOS
  6. Appium CLI
erdncyz commented 2 months ago

Hi

Firstly, can you try Clear the npm cache using the following command:

 npm cache clean --force

Secondly, If your problem doent fixed, update them. To update npm, you can use: npm install -g npm

Thirdly, If you are not using a proxy, you can remove proxy settings with: npm config rm proxy npm config rm https-proxy

Hammad1954 commented 2 months ago

Hello @erdncyz Tried all thee command still facing same issue. please let me know what else we can do.

saikrishna321 commented 2 months ago

@Hammad1954 Try the below

npm uninstall -g appium && npm install -g appium@next rm -rf ~/.appium

Hammad1954 commented 2 months ago

Thank you @saikrishna321

It is working now.