# Pi - npm 7.18.1 upgrade OK?

**URL:** <https://discourse.nodered.org/t/pi-npm-7-18-1-upgrade-ok/47587>\
**Category:** General\
**Created:** [24 June 2021 15:36 UTC](https://discourse.nodered.org/t/pi-npm-7-18-1-upgrade-ok/47587 "2021-06-24T15:36:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![plfinch](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@plfinch](https://discourse.nodered.org/u/plfinch)\
**Post date:** [24 June 2021 15:36 UTC](https://discourse.nodered.org/t/pi-npm-7-18-1-upgrade-ok/47587/1 "2021-06-24T15:36:28Z")

</div>

The npm update is suggesting I upgrade from 6.14.13 to 7.18.1. I seem to recall trying to upgrade to a version 7 release a ways back and encountered issues. Is node-red on Pi v1.3.5 compatible with and should I upgrade to this npm version?

---

<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:** [24 June 2021 15:50 UTC](https://discourse.nodered.org/t/pi-npm-7-18-1-upgrade-ok/47587/2 "2021-06-24T15:50:54Z")

</div>

Assuming that you have installed using the [recommended script](https://nodered.org/docs/getting-started/raspberrypi) then you will have a version of npm that matches the nodejs that has been installed, so I advise against upgrading unless you have a good reason.

---

<div class="post-metadata">

**Author:** ![plfinch](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@plfinch](https://discourse.nodered.org/u/plfinch)\
**Post date:** [24 June 2021 18:23 UTC](https://discourse.nodered.org/t/pi-npm-7-18-1-upgrade-ok/47587/3 "2021-06-24T18:23:15Z")

</div>

I did use that script for the initial install but not for updates. I just now ran the script with the --node16 option with the following effect:

npm version changed from OLD: 6.14.13 to NEW: 7.18.1  
Node.js version changed from OLD: v12.22.1 to NEW: v16.4.0

All went smoothly and initial testing shows all good.

Peter

---

<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:** [8 July 2021 18:23 UTC](https://discourse.nodered.org/t/pi-npm-7-18-1-upgrade-ok/47587/4 "2021-07-08T18:23:34Z")

</div>

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