# Update problem - with script

**URL:** https://discourse.nodered.org/t/update-problem-with-script/50806
**Category:** General
**Created:** [9 September 2021 09:46 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806 "2021-09-09T09:46:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)
#### Post date: [9 September 2021 09:46 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/1 "2021-09-09T09:46:49Z")

</div>

Hi!

trying to update my raspberry pi from o.21 to latest version with the script.  
when doing this i get the following error in my screen.  
How can i solve this?

```auto
npm ERR! error in /usr/lib/node_modules/node-red: ENOENT: no such file or directory, open '/usr/lib/node_modules/node-red/package.json'

```

---

<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: [9 September 2021 10:21 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/2 "2021-09-09T10:21:10Z")

</div>

Just for confirmation, which script do you mean? Is it the one at [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

Please post the install log here `/var/log/nodered-install.log`

Which OS version are you running?

---

<div class="post-metadata">

### Author: ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)
#### Post date: [9 September 2021 10:39 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/3 "2021-09-09T10:39:11Z")

</div>

version is below  
yes from that webpage

```auto
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

```

---

<div class="post-metadata">

### Author: ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)
#### Post date: [9 September 2021 10:40 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/4 "2021-09-09T10:40:23Z")

</div>

log i cannot paste because is to many characters

---

<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: [9 September 2021 10:54 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/5 "2021-09-09T10:54:16Z")

</div>

Can you attach it as a file?

---

<div class="post-metadata">

### Author: ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)
#### Post date: [9 September 2021 12:15 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/6 "2021-09-09T12:15:56Z")

</div>

[nodered-install.pdf](https://discourse.nodered.org/uploads/short-url/hSJ9Nxim4NOmPmjIpjpgbomP1hy.pdf) (125.6 KB)  
does this work?

---

<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: [9 September 2021 12:34 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/7 "2021-09-09T12:34:55Z")

</div>

You didn't need to convert to pdf, a text file would have been ok.

Did you check all your installed nodes were at the latest versions before running the script? If not then do that via the palette manager and re-run the script. If node-red won't run then post the startup log when you try to start it.

Edit: Before you do that update your system, I see from the log that there are 345 packages that are out of date. You can do that using  
`sudo apt-get update && sudo apt-get dist-upgrade`

---

<div class="post-metadata">

### Author: ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)
#### Post date: [9 September 2021 13:03 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/8 "2021-09-09T13:03:46Z")

</div>

Thanks! I try it.

its a pdf because i couldnt select a txt file

---

<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: [9 September 2021 15:07 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/9 "2021-09-09T15:07:19Z")

</div>

> [@RogierQ](#):
>
> i couldnt select a txt file

I see it won't allow .log files to be attached. It will allow .txt files, so for the future, copying it and renaming it to a .txt file would work.

---

<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: [9 September 2021 19:41 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/10 "2021-09-09T19:41:40Z")

</div>

The forum settings have been adjusted so that .log files can now by attached to a post.

---

<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 November 2021 19:42 UTC](https://discourse.nodered.org/t/update-problem-with-script/50806/11 "2021-11-08T19:42:25Z")

</div>

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