@@ -26,8 +26,8 @@ tgta16=16.20.2 # need armv6l latest from https://unofficial-builds.nodejs.org/
2626tgtl16=16.20.2 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
2727tgta18=18.20.8 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
2828tgtl18=18.20.8 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
29- tgta20=20.19.3 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
30- tgtl20=20.19.3 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
29+ tgta20=20.19.4 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
30+ tgtl20=20.19.4 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
3131
3232usage () {
3333 cat << EOL
@@ -49,6 +49,7 @@ Options:
4949 --node16 if set, forces install of major version of nodejs 16 LTS
5050 --node18 if set, forces install of major version of nodejs 18 LTS
5151 --node20 if set, forces install of major version of nodejs 20 LTS
52+ --node22 if set, forces install of major version of nodejs 22 LTS
5253 if none set, install nodejs 20 LTS if nodejs version is less than 18,
5354 otherwise leave current install
5455
@@ -251,7 +252,25 @@ SUDOU="sudo -u $NODERED_USER"
251252
252253if [[ " $( uname) " != " Darwin" ]]; then
253254if curl -I https://registry.npmjs.org/@node-red/util > /dev/null 2>&1 ; then
254- echo -e ' \033]2;' $NODERED_USER @` hostname` : Node-RED update' \007'
255+ if [[ " $( uname -m) " =~ " i686" ]] || [[ " $( uname -m) " =~ " x86_64" && " $( getconf LONG_BIT) " =~ " 32" ]]; then
256+ echo " "
257+ echo " ************************************************************"
258+ echo " "
259+ echo " Warning : Nodejs v20 goes EOL in April 2026."
260+ echo " There are no known later Nodejs builds for 32 bit systems."
261+ echo " "
262+ echo " ************************************************************"
263+ elif uname -m | grep -q armv6l ; then
264+ echo " "
265+ echo " ************************************************************"
266+ echo " "
267+ echo " Warning : Nodejs v20 goes EOL in April 2026."
268+ echo " There are no known later Nodejs builds for Arm v6 systems."
269+ echo " "
270+ echo " ************************************************************"
271+ fi
272+ echo " "
273+ echo Node-RED update script for : $NODERED_USER @` hostname`
255274echo " "
256275echo " This script checks the version of node.js installed is 16 or greater. It will try to"
257276echo " install node 20 if none is found. It can optionally install node 18 or 20 LTS for you."
@@ -416,7 +435,7 @@ case $yn in
416435 echo -ne " Leave existing Node.js :"
417436 elif [[ " $NODE_VERSION " == " " && " $nv " -ne 0 ]]; then
418437 CHAR=" -"
419- echo -ne " Node option not specified : --node18 or --node20 \n"
438+ echo -ne " Node option not specified : --node18, --node20 or --node22 \n"
420439 echo -ne " Leave existing Node.js :"
421440 else
422441 if [[ " $NODE_VERSION " == " 12" ]]; then
0 commit comments