# Pi: Lost Palette manager, can't update

**URL:** <https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924>\
**Category:** General\
**Created:** [19 June 2018 12:56 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924 "2018-06-19T12:56:32Z")\
**Posts on this page:** 6\
**Page:** 3

<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:** [20 June 2018 17:16 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924/42 "2018-06-20T17:16:11Z")

</div>

I will try and replicate the problem tomorrow

---

<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:** [20 June 2018 19:49 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924/43 "2018-06-20T19:49:20Z")

</div>

ok - as long as it’s just you… lessens the chances for the rest of us 🙂

(and - before the maths pedants wake up I know that isn’t true…

---

<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:** [20 June 2018 20:44 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924/44 "2018-06-20T20:44:36Z")

</div>

> [@dceejay](#):
>
> The odd thing about this is that the bash update script should automatically look in /usr/local (and remove any old node.js in there) if run as per the docs.

I have just had a look at the script and there are some of conditions under which it will not get to that code. For example if /etc/apt/sources.list.d/nodesource.list exists then it does not run it. Perhaps the older update-nodejs-and-nodered script, which @Mastiff ran first, did not remove the local copy, but did create nodesource.list. Then the later script would never get to the code that removes the local nodejs.

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [21 June 2018 07:15 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924/45 "2018-06-21T07:15:57Z")

</div>

Just to round off this for my part: I did a round on a new copy of a production Pi (well, a copy before any messing around, where Palette manager wasn't visible), and I used these commands only:

> sudo rm /usr/local/bin/node\*  
> sudo rm /usr/local/bin/npm\*  
> sudo apt-get remove nodejs npm  
> sudo rm /etc/apt/sources.list.d/nodesource.list  
> sudo rm /usr/bin/node\*  
> sudo rm /usr/bin/npm\*  
> sudo rm /var/log/nodered-install.log  
> bash \<(curl -sL [https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered))

This time there was nothing saying that I needed to continue the install (Node-RED is not yet fully installed) like the previous time, with the setup that had been through the wringer. Manage palette is there, and all seems to work. So at least for my part this is fixed. 🙂 Thanks for your help, Colin!

---

<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:** [21 June 2018 07:48 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924/46 "2018-06-21T07:48:10Z")

</div>

In fact I think that all you need is the first two lines

```auto
sudo rm /usr/local/bin/node*
sudo rm /usr/local/bin/npm*

```

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [21 June 2018 07:50 UTC](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924/47 "2018-06-21T07:50:14Z")

</div>

Well, in the immortal words of Pretty Maids: “Anything Worth Doing, Is Worth Overdoing” 😂

[Previous page](https://discourse.nodered.org/t/pi-lost-palette-manager-cant-update/924.md?page=2)
