1

I am trying to install appium using npm. Came accross a self-signed certificate SELF_SIGNED_CERT_IN_CHAIN error and its thrown for npm.

Does anyone observed & fix this before?

1 Answer 1

1
  • Go to https://registry.npmjs.org
  • Click the icon next to the URL in your browser’s address bar
  • Click Connection is secure, then click Certificate is valid
  • On the panel that appears, go to the Details tab, and click the Export… button on the bottom
  • Select *.crt as file type. This may be a single certificate or a certificate chain. Both works. Save the exported file locally
  • Now open a command prompt, and tell npm to use this certificate

npm config set cafile "C:\certs\whatever.crt"

Borrowed my answer from here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.