Answer the question
In order to leave comments, you need to log in
How to get rid of "SELF_SIGNED_CERT_IN_CHAIN" error when installing npm package?
I'm trying to install a package: npm i chai
(not in the project folder, but in the directory above).
Gives an error npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
At the same time, I already installed several other packages there normally, but this one does not want ... I
found tips on the net to try npm --ca=null --strict-ssl=false iinstall ...
Tried:
npm --ca=null --strict-ssl=false i chai
npm set strict-ssl false
Answer the question
In order to leave comments, you need to log in
In general, if anyone else encounters something like this, they talked to our network attack protection service, they faked something there and everything worked.
Trite of course, but have you tried updating NPM or reinstalling the node? (the error is related to the certificates that come with it)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question