# Pi install script fail

**URL:** https://discourse.nodered.org/t/pi-install-script-fail/80362
**Category:** General
**Created:** [7 August 2023 02:27 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362 "2023-08-07T02:27:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 02:27 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/1 "2023-08-07T02:27:25Z")

</div>

Tried ti to use the install script on a pi 4 on it gives me  
/dev/fd/63 no such file or directory  
Something is amiss, perhaps with all the dev work something got moved?

---

<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: [7 August 2023 02:47 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/2 "2023-08-07T02:47:16Z")

</div>

Hi Gerry,

What is it you are trying to install?

`/dev/fd/63` doesn't look like a normal place to install node-red.

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 02:53 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/3 "2023-08-07T02:53:43Z")

</div>

On a pi 4, when in the node red directory, I run the node red install script and that is the error message I get,[edit]  
I assume the script is looking for that directory on the server where the install files are and can't find it

---

<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: [7 August 2023 02:54 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/4 "2023-08-07T02:54:53Z")

</div>

Could you post the command you use to install node-red?

It may be an older one.  
_just saying_

Put it on a line by itself too.  
That way anyone looking can see it in its entirety.

This is what I have, but I **DO NOT** have a 4.  
`bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)`

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 02:57 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/5 "2023-08-07T02:57:41Z")

</div>

bash \<(curl -sL [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered))

When I google for script this is what comes up

---

<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: [7 August 2023 02:59 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/6 "2023-08-07T02:59:01Z")

</div>

Did you do the `sudo apt update` (and other stuff) before the script?

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 02:59 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/7 "2023-08-07T02:59:59Z")

</div>

Yep.. sure did

---

<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: [7 August 2023 03:00 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/8 "2023-08-07T03:00:56Z")

</div>

Ok. Sorry. Just wanted to be sure.

Sorry, _it is above my pay grade_. 🙂

I hope someone else can help you.

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 03:01 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/9 "2023-08-07T03:01:45Z")

</div>

I'm sure one of the wizards will check in some time

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [7 August 2023 03:16 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/10 "2023-08-07T03:16:04Z")

</div>

There may be useful information in /var/log/nodered-install.log, what it was doing when it fell over.

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 03:25 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/11 "2023-08-07T03:25:04Z")

</div>

Looked in folder and node red log file is dated 2022 so I don't think there is a log file for today

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [7 August 2023 03:31 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/12 "2023-08-07T03:31:11Z")

</div>

What do you see on the screen when you run the script? Can you post a screenshot?

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 03:45 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/13 "2023-08-07T03:45:35Z")

</div>

![2023_08_06_21_43_23_pi_testing_.node_red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/05ded8671bf7c439ab05f948e01272cf1ef9c6e4.jpeg)

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [7 August 2023 03:51 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/14 "2023-08-07T03:51:29Z")

</div>

I have no idea if it's related to the issue but you should not run the script with sudo.  
And I think you should be in the home directory not .node-red.

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 03:52 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/15 "2023-08-07T03:52:14Z")

</div>

Tried both ways

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [7 August 2023 03:57 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/16 "2023-08-07T03:57:17Z")

</div>

Can you successfully download the script (without running it)?

```auto
curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered > nrscript

```

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 03:58 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/17 "2023-08-07T03:58:49Z")

</div>

Looks like that worked

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [7 August 2023 04:08 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/18 "2023-08-07T04:08:02Z")

</div>

Ran  
sudo npm install -g --unsafe-perm node-red

That seems to work, wrong script I guess

---

<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: [7 August 2023 05:51 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/19 "2023-08-07T05:51:51Z")

</div>

Hi again.

Glad you worked it out.

So what was the script that did work?  
Just so I can be sure I am using the right one too.

---

<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: [7 August 2023 07:24 UTC](https://discourse.nodered.org/t/pi-install-script-fail/80362/20 "2023-08-07T07:24:33Z")

</div>

> [@gerry](#):
>
> sudo npm install -g --unsafe-perm node-red
> 
> That seems to work, wrong script I guess

That will install just node-red, the script you tried earlier, which is the correct one, will also install nodejs if necessary. The fact that it fails means there is something unusual about your system.

> [@gerry](#):
>
> node red log file is dated 2022 so I don't think there is a log file for today

That assumes that the date is correctly set on the pi. Is the clock correct?  
If the date is correct then the fact that the log exists means that the script has been run previously, which is interesting.

I suspect you have a problem with bash, but I may be wrong. What happens if you just run  
`bash`  
then  
`exit`

What happens if you go to the directory where you downloaded the script, make it executable by running  
`chmod +x nrscript`  
then run it using  
./nrscript

[Next page](https://discourse.nodered.org/t/pi-install-script-fail/80362.md?page=2)
