Pi install script

Ok. Upgrading to 3.1.1 and was going to run
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
I am on nodejs 16 and wanted to move to 18. All I have to do is add --18 or is it --node18 and where do I add it? Inside paren? Outside paren? Searched thru forum and lots of "just add -18" to command but the syntax is eluding me.

download from
nodejs v18
then

export PATH="/home/node-v18.x.x-linux-armv7l/bin:$PATH"

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

@Paul-Reed I see you edited my answer but I can't for the life of me see what you changed.
Can you explain what I had wrong please?

Nothing has changed, and nothing is wrong.

I was trying to stop discourse from turning the URL part of the script into a link.

But it's as good as it gets :wink:

1 Like
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18
```
You should know this 
```

:wink:

Yes Marcus, that's what I tried :joy::joy:

...but it's not what I wanted, as you can't see the end of script (the important bit!) without scrolling.
What I should have done was use 1 backtick at the beginning and one at the end of the script.
Which I've now done.

2 Likes

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