# Wanting to update node on Ubuntu. Docs confusing

**URL:** <https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438>\
**Category:** General\
**Created:** [26 November 2019 08:24 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438 "2019-11-26T08:24:00Z")\
**Posts on this page:** 6\
**Page:** 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:** [26 November 2019 11:08 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438/22 "2019-11-26T11:08:06Z")

</div>

Having removed nodejs on the ubuntu system it will, of course, fail if you have to restart node-red.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 November 2019 11:10 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438/23 "2019-11-26T11:10:05Z")

</div>

Didn't I re-install it (nodejs) with the `sudo apt-get install -y nodejs` command?

---

<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:** [26 November 2019 11:26 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438/24 "2019-11-26T11:26:18Z")

</div>

You didn't tell us you had done that, I don't think. If you installed a different version of nodejs you will need to re-install node-red and run npm install in the .node-red folder in order to rebuild everything for the new version.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 November 2019 11:32 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438/25 "2019-11-26T11:32:01Z")

</div>

Oh poop!

Just now NR is working on the Ubuntu machine.

So I will have to run the update script (for NR) then when that is done: `cd .node-red` and then `npm install` to get all the nodes back.

Ok.

Thanks.

---

<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:** [26 November 2019 11:35 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438/26 "2019-11-26T11:35:27Z")

</div>

If you run the upgrade script then you don't need to do the rest as that is part of the script. If you don't want to run the script then you can just reinstall node red and then do the npm install. The script does a lot more than just install node-red, it makes sure you have a good version of nodejs and rebuilds if necessary.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 November 2019 11:37 UTC](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438/27 "2019-11-26T11:37:24Z")

</div>

I may default to the script so it does all the checking.

Again: Thanks.

Got the Ubuntu one updated and working to 1.0.3 and latest node version. 🙂

[Previous page](https://discourse.nodered.org/t/wanting-to-update-node-on-ubuntu-docs-confusing/18438.md?page=1)
