Hello,
I am trying since yesterday to install node red on a fresh raspbian.
a) with the latest image with bullseye (the lite one!) it seems to be impossible to install with the script from Running on Raspberry Pi : Node-RED
it quits with "curl: (23) Failure writing output to destination" and afterwards "Bad install: Node.js v12.22.12 Npm missing - Exit"
so I tried now with buster (which should be supported?) lite image: 2022-09-22-raspios-buster-armhf-lite.img.xz
the error message there: "curl: (23) Failed writing body (0 != 7067)" and afterwards "Bad install: Node.js v10.24.0 Npm missing - Exit"
I tried to select --node14 and --node16 (ob bullseye and buster) but both did not help.
before, I did ofc the upgrade to the latest packages with apt, on buster and also on bullseye.
it is not a broken SD-card, it is not a full sd-card, it is not a insufficient power supply. it is not a broken internet connection, it is not a broken pi, it is not a broken network cable, ... driving me crazy
the log from the last run on buster attached below. who can enlight me what I need to do?
Thank you!
Started : Tue 13 Dec 12:30:56 CET 2022
Running for user root at /root
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' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing nodejs 16
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 'npm' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libbrotli1 libc-ares2 libnode64 libuv1 nodejs-doc
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
nodejs
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 154 kB disk space will be freed.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 41588 files and directories currently installed.)^M
Removing nodejs (10.24.0~dfsg-1~deb10u2) ...^M
Processing triggers for man-db (2.8.5-2) ...^M
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:
libbrotli1 libc-ares2 libnode64 libuv1 nodejs-doc
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 28.3 MB disk space will be freed.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 41576 files and directories currently installed.)^M
Removing libnode64:armhf (10.24.0~dfsg-1~deb10u2) ...^M
Removing libbrotli1:armhf (1.0.7-2+deb10u1) ...^M
Removing libc-ares2:armhf (1.14.0-1+deb10u1) ...^M
Removing libuv1:armhf (1.24.1-1+deb10u1) ...^M
Removing nodejs-doc (10.24.0~dfsg-1~deb10u2) ...^M
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ...^M
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...
curl is already the newest version (7.64.0-4+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./update-nodejs-and-nodered: line 470: -E: command not found
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 additional packages will be installed:
libbrotli1 libc-ares2 libnode64 libuv1 nodejs-doc
Suggested packages:
npm
The following NEW packages will be installed:
libbrotli1 libc-ares2 libnode64 libuv1 nodejs nodejs-doc
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,360 kB of archives.
After this operation, 28.4 MB of additional disk space will be used.
Get:1 http://debian.anexia.at/raspbian/raspbian buster/main armhf libbrotli1 armhf 1.0.7-2+deb10u1 [257 kB]
Get:2 http://debian.anexia.at/raspbian/raspbian buster/main armhf libc-ares2 armhf 1.14.0-1+deb10u1 [80.9 kB]
Get:3 http://debian.anexia.at/raspbian/raspbian buster/main armhf libuv1 armhf 1.24.1-1+deb10u1 [96.9 kB]
Get:4 http://debian.anexia.at/raspbian/raspbian buster/main armhf libnode64 armhf 10.24.0~dfsg-1~deb10u2 [4,863 kB]
Get:5 http://debian.anexia.at/raspbian/raspbian buster/main armhf nodejs armhf 10.24.0~dfsg-1~deb10u2 [87.8 kB]
Get:6 http://debian.anexia.at/raspbian/raspbian buster/main armhf nodejs-doc all 10.24.0~dfsg-1~deb10u2 [975 kB]
Fetched 6,360 kB in 4s (1,814 kB/s)
Selecting previously unselected package libbrotli1:armhf.^M
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 41433 files and directories currently installed.)^M
Preparing to unpack .../0-libbrotli1_1.0.7-2+deb10u1_armhf.deb ...^M
Unpacking libbrotli1:armhf (1.0.7-2+deb10u1) ...^M
Selecting previously unselected package libc-ares2:armhf.^M
Preparing to unpack .../1-libc-ares2_1.14.0-1+deb10u1_armhf.deb ...^M
Unpacking libc-ares2:armhf (1.14.0-1+deb10u1) ...^M
Selecting previously unselected package libuv1:armhf.^M
Preparing to unpack .../2-libuv1_1.24.1-1+deb10u1_armhf.deb ...^M
Unpacking libuv1:armhf (1.24.1-1+deb10u1) ...^M
Selecting previously unselected package libnode64:armhf.^M
Preparing to unpack .../3-libnode64_10.24.0~dfsg-1~deb10u2_armhf.deb ...^M
Unpacking libnode64:armhf (10.24.0~dfsg-1~deb10u2) ...^M
Selecting previously unselected package nodejs.^M
Preparing to unpack .../4-nodejs_10.24.0~dfsg-1~deb10u2_armhf.deb ...^M
Unpacking nodejs (10.24.0~dfsg-1~deb10u2) ...^M
Selecting previously unselected package nodejs-doc.^M
Preparing to unpack .../5-nodejs-doc_10.24.0~dfsg-1~deb10u2_all.deb ...^M
Unpacking nodejs-doc (10.24.0~dfsg-1~deb10u2) ...^M
Setting up libbrotli1:armhf (1.0.7-2+deb10u1) ...^M
Setting up libc-ares2:armhf (1.14.0-1+deb10u1) ...^M
Setting up libuv1:armhf (1.24.1-1+deb10u1) ...^M
Setting up libnode64:armhf (10.24.0~dfsg-1~deb10u2) ...^M
Setting up nodejs-doc (10.24.0~dfsg-1~deb10u2) ...^M
Setting up nodejs (10.24.0~dfsg-1~deb10u2) ...^M
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode^M
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ...^M
Processing triggers for man-db (2.8.5-2) ...^M
Versions: node:v10.24.0 npm:missing