Closed klein0r closed 1 year ago
Maybe an issue of the nodejs installer: https://github.com/nodesource/distributions/issues/1583 or https://github.com/nodesource/distributions/issues/1579
The challenge is that Debian Bookworm provides a newer Node.js package 18.13.0 from the deb.debian.org repository
Sounds like a great moment to set nodejs 18 as default in the node red installer?
Has RaspiOS released a version on bookworm yet ? (or did you do a manual upgrade ?) Are you using the 32bit or 64bit version ?
Workaround is to specify the nodejs version on the command line by adding --node18
to the command
@dceejay I've upgraded my Raspberry Pi 4 manually to Bookworm. But this is an issue on every debian installation
Workaround is to specify the nodejs version on the command line by adding
--node18
to the command
Of course, but it is still not possible to install the recommended default version (node 16).
bookworm has it's own version of node18 in it's default repo - so although we ass the nodesource repo to the sources it then default to "latest" so picks the node18 version... and the debian one does not include npm and so it all goes bad.
Also as noted RaspiOS has not yet moved to bookworm so yes while it's an issue for those that manually upgrade or install from debian direct it shouldn't bite everyone right now.
The proper fix as you suggest is to move our default to node18 and indeed I am testing that as we speak - but was hoping to release that along with the next version of core Node-RED (3.1)...
Just to note the work-around for Debian bookworm users, if you're installing using the bash+curl script (see: https://nodered.org/docs/getting-started/raspberrypi ) run the update-nodejs-and-nodered installer as follows:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18
Tested on:
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
latest version of script now defaults to 18 so should now work ok
5 attempts now... Clean install of "Bookworm" on RPI4 using Raspberry Pi Imager. Then tried running install using script with and without --node18 suffix. Same error as klein0r in first post. No idea what to do now. Any help please
No idea what to do now.
Just add the --node18
suffix to install that specific version. I have to re-test the installation with the latest script version. But it looks like nodejs 18 is still the default.
@mugginsjm Can you share the content of /etc/apt/sources.list.d/nodesource.list
?
Hi. content is: deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
Adding suffix --node18 gives the same result
thanks
script was updated yesterday (1/Jan/24) - should now be fixed.
That's great... working now thanks
System info
Log