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

**URL:** <https://discourse.nodered.org/t/node-red-install-issue-unable-to-get-issuer-cert-locally/9964>\
**Category:** General\
**Created:** [10 April 2019 00:13 UTC](https://discourse.nodered.org/t/node-red-install-issue-unable-to-get-issuer-cert-locally/9964 "2019-04-10T00:13:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jch360](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jch360](https://discourse.nodered.org/u/jch360)\
**Post date:** [10 April 2019 00:13 UTC](https://discourse.nodered.org/t/node-red-install-issue-unable-to-get-issuer-cert-locally/9964/1 "2019-04-10T00:13:45Z")

</div>

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.

```auto
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,

---

<div class="post-metadata">

**Author:** ![jch360](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jch360](https://discourse.nodered.org/u/jch360)\
**Post date:** [10 April 2019 02:55 UTC](https://discourse.nodered.org/t/node-red-install-issue-unable-to-get-issuer-cert-locally/9964/2 "2019-04-10T02:55:53Z")

</div>

Ah, I found on a Github forum.

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

```auto
npm config set registry http://registry.npmjs.org/

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [12 April 2019 15:25 UTC](https://discourse.nodered.org/t/node-red-install-issue-unable-to-get-issuer-cert-locally/9964/3 "2019-04-12T15:25:04Z")

</div>

> [@jch360](#):
>
> failed, reason: unable to get local issuer certificate

Google first:

> <https://stackoverflow.com/questions/45884752/npm-err-code-unable-to-get-issuer-cert-locally>

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 May 2020 19:35 UTC](https://discourse.nodered.org/t/node-red-install-issue-unable-to-get-issuer-cert-locally/9964/5 "2020-05-11T19:35:12Z")

</div>


