Quantcast
Channel: Nithin Mohan T K
Viewing all articles
Browse latest Browse all 110

[NPM Tip] Error: self signed certificate in certificate chain

$
0
0

As a developer, if you are behind a corporate proxy that assigns an intermediatory self signed SSL certificate to every request to provide secure content filtering as part of cybersecurity measures, I am sure you might have gone through the pain to get it working when working with NodeJS.

if you have Admin access to your windows machine, you could simply try the following fix:

    • Simply Add an Environment Variable
Environment Variable Name: NODE_TLS_REJECT_UNAUTHORIZED, Value: 0

image

image

Hope that solves your problem.


Viewing all articles
Browse latest Browse all 110

Trending Articles