# Install nodejs 12 on Raspbian Jessie

**URL:** <https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088>\
**Category:** General\
**Created:** [22 February 2020 10:58 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088 "2020-02-22T10:58:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2020 10:58 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/1 "2020-02-22T10:58:57Z")

</div>

I want to install nodejs 12 on Raspbian Jessie on a Pi 3 currently running v10.x. I uninstalled nodejs using apt and then ran the pi install script, but it installed 10.x again. Is it not possible to install 12 on Jessie?  
I know I should upgrade to Buster, it is on the todo list but this pi has a complex setup so that is not a trivial task, I was hoping to keep it going until I have more time.

---

<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:** [22 February 2020 12:49 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/2 "2020-02-22T12:49:16Z")

</div>

I wouldn’t update your pi to Buster for a while yet. It is a big upgrade and changes quite a few things.

To get nodejs 12. I would follow the standard approach which is linked from the node downloads page. Add the maintained sources library and install/update via apt.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2020 13:41 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/3 "2020-02-22T13:41:36Z")

</div>

I tried that first, assuming you mean the instructions at [https://github.com/nodesource/distributions/blob/master/README.md#debinstall](https://github.com/nodesource/distributions/blob/master/README.md#debinstall)  
I get

```auto
nodejs : Depends: libstdc++6 (>= 5.2) but 4.9.2-10+deb8u2 is to be installed

```

I searched around but could not find anything helpful. I found a thread here with someone having that problem with the node-red script which resulted in a fixed script, but perhaps the fix was just to limit it to 10.x

I have updated several pis to Buster over the last few months and encountered no problems so far.

---

<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:** [22 February 2020 14:02 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/4 "2020-02-22T14:02:04Z")

</div>

@Colin - instead of uninstalling you could try to edit /etc/apt/source.list.d/nodesource.list - to point to 12.  
eg `deb https://deb.nodesource.com/node_12.x jessie main` then apt-get update / upgrade should pull it in

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2020 14:27 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/5 "2020-02-22T14:27:51Z")

</div>

> [@dceejay](#):
>
> deb [https://deb.nodesource.com/node\_12.x](https://deb.nodesource.com/node_12.x) jessie main

That is what I now have there, that gives the dependency problem on install or upgrade.  
Taken at face value the error is saying the node 12.x in the jessie repository requires libstdc++6 5.2 or higher, but the version in the jessie repo is 4.9 (which it is).  
I will try on one of my other Jessies to check it is not something specific to this system.

**[Edit]** No I won't, I haven't got another one with Jessie.

---

<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:** [22 February 2020 14:53 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/6 "2020-02-22T14:53:56Z")

</div>

Hmm - well there isn't a problem staying with node10 as it's still LTS... - or you could go to stretch first maybe ? (Though personally I haven't had any problems with Buster.)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 February 2020 15:17 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/7 "2020-02-22T15:17:40Z")

</div>

I am trying to use node-red-contrib-onvif-nodes which appears to need 12.x, at least I think that is what the the problem is. As I said earlier I want to upgrade the Pi to buster, but that is a major exercise as this is a key part of my system so I the act of updating needs to be taken carefully. I can run the onvif node on a different pi though and link it in to my main dashboard so it is not an insurmountable problem. I may just have to put up with it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 April 2020 15:20 UTC](https://discourse.nodered.org/t/install-nodejs-12-on-raspbian-jessie/22088/8 "2020-04-22T15:20:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
