Node-Red Install Issue - Unable to get issuer cert locally

I am trying to install Node-Red, I have installed many versions of Node.js to resolve the issue with no success. This is the errors I receive in powershell and cmd prompt.

npm install -g --unsafe-perm node-red
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! request to https://registry.npmjs.org/node-red failed, reason: unable to get local issuer certificate

Does anyone have any recommendations on what is going wrong?

Thanks,

1 Like

Ah, I found on a Github forum.

Run this before the node-red install and works now.

npm config set registry http://registry.npmjs.org/
3 Likes

Google first: