0

how to solve this problem?

verbose node v10.14.2

verbose npm  v6.4.1

error code ELIFECYCLE

error errno 1

error appium-chromedriver@4.10.0 install: `node install-npm.js`

error Exit status 1

error Failed at the appium-chromedriver@4.10.0 install script.

error This is probably not a problem with npm. There is likely additional logging output above.

verbose exit [ 1, true ]
Bartosz Zasada
  • 3,762
  • 2
  • 19
  • 25
Melika
  • 27
  • 6

2 Answers2

1

This worked: sudo npm install -g appium --unsafe-perm=true --allow-root

  • You should never install appium via sudo as you may face issues with service programmatic start. – dmle Jan 05 '19 at 12:14
0

First of all, I would highly recommend using a node version manager for Node/npm installation.

Appium installation works perfectly with node version 10.1.0:

nvm install 10.1.0 //in new shell nvm use node npm install -g appium

Update: I think you are facing a similar issue, caused by Windows firewall or some proxy.

What you need to do is set the --chromedriver_cdnurl flag during npm install to the server which is accessible within your firewall:

npm install -g appium --chromedriver_cdnurl=http://localhost:1234

Maybe even better to setup npm proxy following instructions

dmle
  • 3,498
  • 1
  • 14
  • 22
  • I'm installed nodejs v10.1.0 but i see again this error... C:\Windows\System32>node -v v10.1.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! appium-chromedriver@4.10.1 install: `node install-npm.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the appium-chromedriver@4.10.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. – Melika Dec 22 '18 at 08:14