SELF_SIGNED_CERT_IN_CHAIN Error while installing any package globally.

(Rupesh H Bhurke) #1

Whilte trying to install any package globally I keep getting following error:

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN
npm ERR! request to https://registry.npmjs.org/yo failed, reason: self signed certificate in certificate chain

same error with npm login too

Kindly advice

Rupesh

0 Likes

(John Gee) #2

Are you using a proxy server to access the internet?

0 Likes

(Rupesh H Bhurke) #3

Yes! It seems that I am behind a corporate proxy server.

0 Likes

(John Gee) #4

I don’t have experience with npm behind a proxy, but the link to the troubleshooting topic is: Common proxy and networking problems

0 Likes

(Rupesh H Bhurke) #5

Ok! I will check it out.

Thank you.

0 Likes

(Rupesh H Bhurke) #6

Hi there,

There is no proxy but we have a Firewall implemented here. It’s name is SOPHOS XG210 (SFOS 17.1.3 MR-3) C23076R6DFFY9F6.

Kindly advice.

0 Likes

(Jack) #7

You need the firewalls root public key to use as a .pem file you point npm cafile config to then it’ll be happy with the signing chain to carry on. https://docs.npmjs.com/misc/config#cafile

And if you are on a laptop that leaves the corporate network, you need to make sure NPMs actual certificate is appended to that .pem file - Can NPM cafile add to trust store not replace it?

1 Like

(Rupesh H Bhurke) #8

Hi Jack,

Thank you very much. But I did not understand clearly what it is that I need to do here. What do I need to request from guys who maintain firewall?

Thank you.

With warm regards,

Rupesh Bhurke

0 Likes

(system) closed #9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

0 Likes