Skip to main content

Command Palette

Search for a command to run...

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

Updated
1 min read

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

More from this blog

Fix, Build, Automate

17 posts

Straightforward solutions for modern tech problems