79496966

Date: 2025-03-10 03:47:01
Score: 0.5
Natty:
Report link

Fix:

I ran the command suggested: openssl s_client -connect registry.npmjs.org:443 -cipher AESGCM <NUL. However, I got the error: Verify return code: 20 (unable to get local issuer certificate).

The CA certificate was missing. So, I followed these steps:

  1. I installed the certificate from here. "GTS Root R4" certificate is used by npmjs.org

  2. Added certificate path using this command setx NODE_EXTRA_CA_CERTS <path to certificate>

  3. Verified the path using this command node -p "process.env.NODE_EXTRA_CA_CERTS"

If the correct file path is displayed, the setting was applied successfully.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Fabrez Tina