Skip to main content

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

Published 1 min readMarkdown

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

No comments yet. Be the first to comment.

More from this blog