pi@raspi5:~ $ apt policy nodejs
nodejs:
Installed: 18.19.0-1nodesource1
Candidate: 18.19.0-1nodesource1
Version table:
18.19.0+dfsg-6~deb12u1 -1
500 Index of /debian-security bookworm-security/main arm64 Packages
*** 18.19.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
100 /var/lib/dpkg/status
18.18.2-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.18.1-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.18.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.17.1-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.17.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.16.1-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.16.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.15.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.14.2-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.14.1-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.14.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.13.0+dfsg1-1 500
500 Index of /debian bookworm/main arm64 Packages
18.13.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.12.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.11.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.10.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.9.1-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.9.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.8.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.7.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.6.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.5.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.4.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.3.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.2.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.1.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
18.0.0-1nodesource1 500
500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
pi@raspi5:~ $ cat /var/log/nodered-install.log
OLD nodejs 0 :
NEW nodejs :
Started : Thu 21 Dec 21:09:53 CET 2023
Running for user pi at /home/pi
Failed to stop nodered.service: Unit nodered.service not loaded.
Found global nodes: :
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered:armhf' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing nodejs 18
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodejs-legacy' is not installed, so not removed
Package 'nodejs' is not installed, so not removed
Package 'npm' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove node which isn't installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Grab the LTS bundle
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20230311).
curl is already the newest version (7.88.1-10+deb12u4).
gnupg is already the newest version (2.2.40-1.1).
gnupg set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 Index of /debian bookworm InRelease
Get:2 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 Index of /debian bookworm-updates InRelease
Get:5 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages [6,613 B]
Hit:6 Index of /debian bookworm InRelease
Get:7 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [6,656 B]
Fetched 25.4 kB in 1s (43.8 kB/s)
Reading package lists...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.0 MB of archives.
After this operation, 189 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_18.x nodistro/main arm64 nodejs arm64 18.19.0-1nodesource1 [29.0 MB]
Fetched 29.0 MB in 13s (2,260 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 125272 files and directories currently installed.)
Preparing to unpack .../nodejs_18.19.0-1nodesource1_arm64.deb ...
Unpacking nodejs (18.19.0-1nodesource1) ...
Setting up nodejs (18.19.0-1nodesource1) ...
Processing triggers for man-db (2.11.2-2) ...
Versions: node:v18.19.0 npm:10.2.3
npm WARN using --force Recommended protections disabled.
Now install Node-RED
added 303 packages in 25s
3.1.3
Now create basic package.json for the user and move any global nodes
Running npm rebuild
rebuilt dependencies successfully
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for pi:pi @ /home/pi
ln: failed to create symbolic link '/usr/bin/python': File exists
Now add launcher to top bar, add cpu temp example, make sure ping works
Allow binding to low ports : n
Memory : 4.0G
Started : Thu 21 Dec 21:09:53 CET 2023
Finished: Thu 21 Dec 21:11:00 CET 2023
OLD nodejs 0 :
NEW nodejs :
Started : Fri 5 Jan 15:06:58 CET 2024
Running for user pi at /home/pi
Found global nodes: :
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered:armhf' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing nodejs 18
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libc-ares2 libuv1 node-busboy node-cjs-module-lexer node-undici node-xtend
nodejs-doc
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libnode108 node-acorn nodejs
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 48.5 MB disk space will be freed.
(Reading database ... 126047 files and directories currently installed.)
Removing nodejs (18.19.0+dfsg-6~deb12u1) ...
Removing libnode108:arm64 (18.19.0+dfsg-6~deb12u1) ...
Removing node-acorn (8.8.1+ds+~cs25.17.7-2) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+rpt2+deb12u3) ...
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove node which isn't installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
libc-ares2 libuv1 node-busboy node-cjs-module-lexer node-undici node-xtend
nodejs-doc
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 17.8 MB disk space will be freed.
(Reading database ... 125729 files and directories currently installed.)
Removing libc-ares2:arm64 (1.18.1-3) ...
Removing libuv1:arm64 (1.44.2-1) ...
Removing node-undici (5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3) ...
Removing node-busboy (1.6.0+~cs2.6.0-2) ...
Removing node-cjs-module-lexer (1.2.2+dfsg-5) ...
Removing node-xtend (4.0.2-3) ...
Removing nodejs-doc (18.19.0+dfsg-6~deb12u1) ...
Processing triggers for libc-bin (2.36-9+rpt2+deb12u3) ...
Grab the LTS bundle
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20230311).
curl is already the newest version (7.88.1-10+deb12u5).
gnupg is already the newest version (2.2.40-1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 Index of /debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 Index of /debian bookworm-updates InRelease
Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:5 Index of /debian bookworm InRelease
Reading package lists...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.0 MB of archives.
After this operation, 189 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_18.x nodistro/main arm64 nodejs arm64 18.19.0-1nodesource1 [29.0 MB]
Fetched 29.0 MB in 0s (74.5 MB/s)
Selecting previously unselected package nodejs.
(Reading database ... 125296 files and directories currently installed.)
Preparing to unpack .../nodejs_18.19.0-1nodesource1_arm64.deb ...
Unpacking nodejs (18.19.0-1nodesource1) ...
Setting up nodejs (18.19.0-1nodesource1) ...
Processing triggers for man-db (2.11.2-2) ...
Versions: node:v18.19.0 npm:10.2.3
npm WARN using --force Recommended protections disabled.
Now install Node-RED
added 303 packages in 16s
3.1.3
Now create basic package.json for the user and move any global nodes
Running npm rebuild
rebuilt dependencies successfully
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for pi:pi @ /home/pi
ln: failed to create symbolic link '/usr/bin/python': File exists
Now add launcher to top bar, add cpu temp example, make sure ping works
Allow binding to low ports : n
Memory : 4.0G
Started : Fri 5 Jan 15:06:58 CET 2024
Finished: Fri 5 Jan 15:07:53 CET 2024
You said you had just installed it, but it shows a date for the first install of 21st December.
I noticed that as well.
That's why I marked it.
I re-wrote the SD card with the new OS today.
Everything would have to be deleted?
Does the Raspi5 have a problem updating the date/time?
It should update the date/time when it connects to the internet.
Also strange is the fact that the first log shows the correct version is installed, from the nodesource repository:
However the second one shows it removing a different version, the one from the debian repository:
So something very strange has been going on.
I'll do another fresh installation and see how the Raspi5 behaves.
Just to say that I have Node-RED running on a Rasp Pi5 using the script with no problems (installed yesterday)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.