# ⚠️ Update npm to v6.13.4

**URL:** https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062
**Category:** News
**Created:** [12 December 2019 08:52 UTC](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062 "2019-12-12T08:52:32Z")
**Posts on this page:** 5
**Page:** 2

<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: [19 December 2019 08:41 UTC](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062/21 "2019-12-19T08:41:32Z")

</div>

Ok. Thanks.

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [19 December 2019 08:51 UTC](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062/22 "2019-12-19T08:51:40Z")

</div>

> [@knolleary](#):
>
> I don't know if the NodeSource packages have been updated yet.

They have been, at least on Debian Buster for amd64 and armhf architectures. Just checked.

---

<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: [19 December 2019 08:55 UTC](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062/23 "2019-12-19T08:55:02Z")

</div>

The Install script doesn't update minor version of nodejs. If you have a Pi2 or 3 then usual `sudo apt update && sudo apt upgrade` should do it as all we do is install the sources into /etc/apt/sources.list.d directory. For Pi0 and Pi1 (arm6) you may need to `sudo rm /usr/bin/node /usr/bin/npm` to remove (or hide) the existing nodejs then re-run our script which will then unpack the new version over the old one.

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [19 December 2019 09:26 UTC](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062/24 "2019-12-19T09:26:02Z")

</div>

That worked nicely ta 🙂

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f7bd08693b442e9e07a1e639e628dcb73eb7b147.jpeg)

---

<div class="post-metadata">

### Author: ![oywino](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oywino/32/26457_2.png) [@oywino](https://discourse.nodered.org/u/oywino)
#### Post date: [26 July 2020 07:57 UTC](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062/25 "2020-07-26T07:57:15Z")

</div>

I solved this by logging into the container as root user:  
`docker exec -it -user root <container-ID> /bin/bash`  
and the ran:  
`npm i npm -g`

It worked just fine.

[Previous page](https://discourse.nodered.org/t/update-npm-to-v6-13-4/19062.md?page=1)
