# NPM does not support Node.js v10.15.2

**URL:** <https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810>\
**Category:** General\
**Created:** [2 January 2020 09:21 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810 "2020-01-02T09:21:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Golonder](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@Golonder](https://discourse.nodered.org/u/Golonder)\
**Post date:** [2 January 2020 09:21 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/1 "2020-01-02T09:21:42Z")

</div>

Hi,  
after installing node-red and npm on my raspi I get an NPM support error.  
Currently I am running NPM 5.8.0 and Node 10.15.2  
If I try to upgrade to a newer NPM using

```auto
pi@raspberrypi:~ $ sudo npm install npm@latest -g
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
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/npm failed, reason: unable to get local issuer certificate

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-02T09_20_27_206Z-debug.log
pi@raspberrypi:~ $

```

I get an error I do not understand ... seems to be caused by an certificate issue with [https://nodejs.org](https://nodejs.org)

Any idea how I can fix this ?  
BR  
Go

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 January 2020 09:39 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/2 "2020-01-02T09:39:40Z")

</div>

Hi, how did you install node given your other post saying the install script didn't work?

---

<div class="post-metadata">

**Author:** ![Golonder](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@Golonder](https://discourse.nodered.org/u/Golonder)\
**Post date:** [2 January 2020 09:44 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/3 "2020-01-02T09:44:23Z")

</div>

manually

apt-get install nodered

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 January 2020 09:46 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/4 "2020-01-02T09:46:29Z")

</div>

Have you tried googling for the error?

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

---

<div class="post-metadata">

**Author:** ![Golonder](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@Golonder](https://discourse.nodered.org/u/Golonder)\
**Post date:** [2 January 2020 09:49 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/5 "2020-01-02T09:49:38Z")

</div>

yes and I found several solution, the easiest way aorund it would be to turn of strict-ssl, but thats not the way I'd like to solve it  
unfortunately all other options did not work as expected

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 January 2020 12:53 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/6 "2020-01-02T12:53:22Z")

</div>

what version of npm do you end up with installed after doing that ?  
I seem to recall seeing that warning once upon a time but it ended up installed (and working).

---

<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:** [2 January 2020 13:57 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/7 "2020-01-02T13:57:13Z")

</div>

You seem to have assumed that the version of node.js in the default libraries for your version of Linux are up-to-date and that is often not the case. Did you follow the recommended installation from the node.js site? That will install the correct version of npm to match the current version of node.js.

---

<div class="post-metadata">

**Author:** ![Golonder](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@Golonder](https://discourse.nodered.org/u/Golonder)\
**Post date:** [2 January 2020 15:23 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/8 "2020-01-02T15:23:37Z")

</div>

you are right - I was expecting too much from a linux based system  
but the issue is solved meanwhile thanks to Biskis:

> **[Install Node.js and Npm on Raspberry Pi](https://www.instructables.com/id/Install-Nodejs-and-Npm-on-Raspberry-Pi/)**
>
> Install Node.js and Npm on Raspberry Pi: You can build many apps using node.js and npm on your raspberry pi and it's very easy to interact with GPIO or other components connected to your raspberry pi. So if you are like me and like to do it on...

---

<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:** [2 January 2020 15:38 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/9 "2020-01-02T15:38:59Z")

</div>

Actually, I wouldn't follow those instructions. As I said, the best place to go is the node.js website. Really you want to use a distribution library so that you can keep node.js up-to-date using `sudo apt-get update && sudo apt-get upgrade` like everything else. The node website directs you to here for Debian based systems including ARM:

> <https://github.com/nodesource/distributions/blob/master/README.md>

That tells you to do:

```auto
sudo curl -sL https://deb.nodesource.com/setup_12.x | bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

```

Job done.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 January 2020 15:42 UTC](https://discourse.nodered.org/t/npm-does-not-support-node-js-v10-15-2/19810/10 "2020-01-02T15:42:17Z")

</div>

(which indeed is what we do inside our script - when it works 😉
