unable to get local issuer certificate (node-gyp, Node, npm)

This should be used only as a temporary fix for development, it exposes you to man-in-the-middle attacks. The long-term solution should be to properly set up SSL certificates.

  • Windows

set NODE_TLS_REJECT_UNAUTHORIZED=0

  • Linux

export NODE_TLS_REJECT_UNAUTHORIZED=0

0
Subscribe to my newsletter

Read articles from Rino Reji Cheriyan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Rino Reji Cheriyan
Rino Reji Cheriyan