# Dowgrading Node.js on raspberry

**URL:** https://discourse.nodered.org/t/dowgrading-node-js-on-raspberry/8945
**Category:** General
**Created:** [13 March 2019 20:47 UTC](https://discourse.nodered.org/t/dowgrading-node-js-on-raspberry/8945 "2019-03-13T20:47:45Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [13 March 2019 21:28 UTC](https://discourse.nodered.org/t/dowgrading-node-js-on-raspberry/8945/2 "2019-03-13T21:28:29Z")

</div>

Assuming you used the pi install/upgrade script to install it, and assuming it is not a Pi Zero then first uninstall nodejs  
`sudo apt-get remove nodejs`  
Then edit the file `/etc/apt/sources.list.d/nodesource.list`. You should find it contains something like

```auto
deb https://deb.nodesource.com/node_10.x jessie main
deb-src https://deb.nodesource.com/node_10.x jessie main

```

Change the 10 to 8 on each line. Then run

```bash
sudo apt-get update
sudo apt-get install nodejs

```

---

_[View the full topic](https://discourse.nodered.org/t/dowgrading-node-js-on-raspberry/8945)._
