A bunch of users received a “SELF_SIGNED_CERT_IN_CHAIN” error during installing and publishing packages throughout the day today.
The cause: npm no longer supports its self-signed certificates.
The solution: either
1) upgrade your version of npm
npm install npm -g --ca=null
- or -
2) tell your current version of npm to use known registrars
npm config set ca=""