# Raspberry pi outdated software

**URL:** <https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458>\
**Category:** General\
**Created:** [29 November 2022 15:02 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458 "2022-11-29T15:02:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [29 November 2022 15:02 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/1 "2022-11-29T15:02:34Z")

</div>

I use the command `npm outdated -g --depth=0` on my rpi to check if I have outdated software.

It turns out my 'corepack' is outdated. This package seems not to be getting updated with the usual APT commands. I also cannot find anything about this package on internet.

Can anyone tell me what this is? And how do I update this package?

![afbeelding](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12415972b4b399016d227e0615edd5e87a70e1ff.png)

![afbeelding](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44a2635861303998752703ff83759a6f4779dddd.png)

---

<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:** [29 November 2022 15:18 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/3 "2022-11-29T15:18:36Z")

</div>

I think that is the module corepack. [This page](https://www.npmjs.com/package/corepack) says it is installed with nodejs, so there is probably not much you can do about it, other than upgrade nodejs I suppose.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [29 November 2022 15:46 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/4 "2022-11-29T15:46:45Z")

</div>

@Colin OK, so I understand that is some kind of development tool, I do not really need, but I got somehow for free lately? 🙂 Thanks for the info 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:** [29 November 2022 15:49 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/5 "2022-11-29T15:49:24Z")

</div>

According to that page it doesn't do anything unless you activate it, so I wouldn't worry about it.

---

<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:** [29 November 2022 16:01 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/6 "2022-11-29T16:01:30Z")

</div>

The reason it wasn't updated is that your package.json is specifying that it wants anything in the 0.14.\* range of versions. So 0.15.2 is outside that.

Note that versioning standards for npm make the assumption that anything with a major version change (e.g. v1.2.3 to v2.0.0) is a breaking change and therefore should not update automatically.

However, before v1, it is assumed that minor version changes may also be breaking so changing from v0.14.x to v0.15.x may be breaking and does not auto update.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [29 November 2022 16:48 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/7 "2022-11-29T16:48:54Z")

</div>

@TotallyInformation I t might have something to do that I upgraded node.js from version 15.x to version 16.x.

I don't think I really need it, do I? So what advice can you give me, update somehow to version 16.x also, or de-install the package?

---

<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:** [29 November 2022 16:56 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/8 "2022-11-29T16:56:41Z")

</div>

> **Corepack will let you use Yarn and pnpm without having to install them**

Unless you need it, you don't need it! 🙂

It is only useful when using Yarn or pnpm anyway so if you aren't using those, you don't need it. And it is only useful if creating packages using those tools.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [29 November 2022 17:02 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/9 "2022-11-29T17:02:55Z")

</div>

@TotallyInformation OK, so I guess I don't need it then.

Can I with a simple `NPM uninstall corepack` remove this package?

---

<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:** [29 November 2022 17:04 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/10 "2022-11-29T17:04:22Z")

</div>

From the correct folder, yes. Looks like it was a global install so from any location, just remember to include `-g` in the parameters.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [29 November 2022 17:08 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/11 "2022-11-29T17:08:08Z")

</div>

@TotallyInformation Ok, seems good.

`sudo npm uninstall corepack -g`

Did do the trick. Thanks for your help. 🙂

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [30 November 2022 10:04 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/12 "2022-11-30T10:04:32Z")

</div>

@TotallyInformation @Colin I have another question in regard to outdated software.

Is there a way to detect if there is a new node red dashboard version. It would like to update my software overview with that. Now I check my node-red manage pallet manually, to see if there is a new version.

---

<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:** [30 November 2022 10:06 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/13 "2022-11-30T10:06:48Z")

</div>

I think I have a flow for that but I'm struggling to find it.

If I remember rightly, I use an exec node to issue an npm command which gets captured and sends a message to telegram if there is anything to update.

This will tell you if Dashboard needs updating:

```auto
npm outdated --json node-red-dashboard

```

The data returned is in JSON format.

---

<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:** [30 November 2022 10:09 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/14 "2022-11-30T10:09:35Z")

</div>

Outside of Node-RED you can go into your `.node-red` directory and run `npm outdated` to see if there are any upgrades available. Then `npm upgrade` will update the ones that it can safely. (Some you may need to do manually if there is too big a semantic jump - so you need to check what breaking changes may affect you). Then you can restart Node-RED.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [30 November 2022 10:14 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/15 "2022-11-30T10:14:23Z")

</div>

@dceejay I use `npm outdated -g --depth=0` to detect if there are new versions, but it doesn't include new versions of dashboard, as far as I know. My installed version now is 3.2.0, but I just saw there is a new version 3.2.3. But npm outdated doesn't report anything.

---

<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:** [30 November 2022 10:15 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/16 "2022-11-30T10:15:21Z")

</div>

That is checking global installs and you will have installed dashboard locally. remove the `-g` and the `--depth=0` and make sure you are in your userDir folder when issuing the command.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [30 November 2022 10:19 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/17 "2022-11-30T10:19:58Z")

</div>

@TotallyInformation That doesn't seem right...

![afbeelding](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d124d83ab365b5e56e29ef12eefa981b6b2ca790.png)

---

<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:** [30 November 2022 10:44 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/18 "2022-11-30T10:44:31Z")

</div>

The directory you want is the one where the flows are located, which is usually called .node-red

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [30 November 2022 11:45 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/19 "2022-11-30T11:45:20Z")

</div>

@Colin @TotallyInformation @dceejay

Well, I managed so far with following command:

`cd /home/pi/.node-red && npm outdated node-red-dashboard --json`

I get this output:

 ![afbeelding](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dc6848302f716eea510ddbca2f1e8db0cc0c2248.png)

---

<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:** [30 November 2022 12:12 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/20 "2022-11-30T12:12:49Z")

</div>

You will get an empty JSON string `{}` if there is no outstanding update. Also note that `wanted` and `latest` will be different if there is a major version change waiting. Otherwise, they should be the same.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [30 November 2022 12:27 UTC](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458/21 "2022-11-30T12:27:19Z")

</div>

@TotallyInformation

Yes, I know that already. I only use this command to check for outdated software, not for current version.  
Indeed, I only check for `latest`, not `wanted`!

For current version I use command:

`cd /home/pi/.node-red && npm list node-red-dashboard --depth=0 --json`

[Next page](https://discourse.nodered.org/t/raspberry-pi-outdated-software/71458.md?page=2)
