OLD nodejs 0 : NEW nodejs : *************************************** Started : Thu Feb 3 15:29:18 CET 2022 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 The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Installing nodejs 14 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 The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 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... The following packages will be REMOVED: libfuse2 apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 354 kB disk space will be freed. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 90898 files and directories currently installed.) Removing libfuse2:arm64 (2.9.9-5) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... 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.74.0-1.3+deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ## Installing the NodeSource Node.js 14.x repo... ## Populating apt-get cache... + apt-get update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://security.debian.org/debian-security bullseye-security InRelease Get:4 http://archive.raspberrypi.org/debian bullseye InRelease [23.5 kB] Get:5 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [249 kB] Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [249 kB] Fetched 521 kB in 6s (82.6 kB/s) Reading package lists... ## Confirming "bullseye" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/bullseye/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null ## Creating apt sources list file for the NodeSource Node.js 14.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x bullseye main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x bullseye main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://security.debian.org/debian-security bullseye-security InRelease Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease Get:5 https://deb.nodesource.com/node_14.x bullseye InRelease [4586 B] Get:6 https://deb.nodesource.com/node_14.x bullseye/main arm64 Packages [775 B] Get:7 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages [782 B] Fetched 6143 B in 4s (1726 B/s) Reading package lists... ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn 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 24.8 MB of archives. After this operation, 122 MB of additional disk space will be used. Get:1 https://deb.nodesource.com/node_14.x bullseye/main arm64 nodejs arm64 14.19.0-deb-1nodesource1 [24.8 MB] apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Fetched 24.8 MB in 21s (1159 kB/s) Selecting previously unselected package nodejs. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 90885 files and directories currently installed.) Preparing to unpack .../nodejs_14.19.0-deb-1nodesource1_arm64.deb ... Unpacking nodejs (14.19.0-deb-1nodesource1) ... Setting up nodejs (14.19.0-deb-1nodesource1) ... Processing triggers for man-db (2.9.4-2) ... Versions: node:v14.19.0 npm:6.14.16 npm WARN using --force I sure hope you know what you are doing. Now install Node-RED /usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi /usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js > bcrypt@5.0.1 install /usr/lib/node_modules/node-red/node_modules/bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! install response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-linux-arm64-glibc.tar.gz node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.0.1 and node@14.19.0 (node-v83 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-linux-arm64-glibc.tar.gz make: Entering directory '/usr/lib/node_modules/node-red/node_modules/bcrypt/build' CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o AR(target) Release/obj.target/../node-addon-api/nothing.a COPY Release/nothing.a CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o