E
E
Emptyform2016-07-07 17:37:12
JavaScript
Emptyform, 2016-07-07 17:37:12

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

The result is still not working. Another error falls out, or rather, a sheet falls out for 2 and a half thousand lines marked "ERR" ...
How to overcome this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Emptyform, 2016-07-12
@Emptyform

In general, if anyone else encounters something like this, they talked to our network attack protection service, they faked something there and everything worked.

M
Mak Alexey, 2016-07-07
@S-ed

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 question

Ask a Question

731 491 924 answers to any question