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