DietPi: cannot install Node Red

I don’t know where to post this…
I have errors trying to install Node-Red on the latest DietPi, see below.
No pb with Ubuntu 20.04 LTS.
Platform is PI3B.
Would be great to have Node-Red working on DIetPi for tinkering, e.g. metadata provision on FIP radio see here Live Radio: metadata

DietPi-Software
─────────────────────────────────────────────────────
Mode: Installing Node-Red: tool for wiring devices, APIs and online services

[ INFO ] DietPi-Software | APT installation for: python python3 python-rpi.gpio, please wait…
[ OK ] DietPi-Software | G_AGI python python3 python-rpi.gpio
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
/root/.RoonExtensions/bin/node-red -> /root/.RoonExtensions/lib/node_modules/node-red/red.js
/root/.RoonExtensions/bin/node-red-pi -> /root/.RoonExtensions/lib/node_modules/node-red/bin/node-red-pi

bcrypt@3.0.6 install /root/.RoonExtensions/lib/node_modules/node-red/node_modules/bcrypt
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v83-linux-arm-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.6 and node@14.1.0 (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory ‘/root/.RoonExtensions/lib/node_modules/node-red/node_modules/bcrypt/build’
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
In file included from …/src/bcrypt_node.cc:1:
…/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
…/…/nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from …/…/nan/nan.h:53,
from …/src/bcrypt_node.cc:1:
…/src/bcrypt_node.cc: At global scope:
/root/.cache/node-gyp/14.1.0/include/node/node.h:731:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/root/.cache/node-gyp/14.1.0/include/node/node.h:765:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
…/src/bcrypt_node.cc:378:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(bcrypt_lib, init);
^~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
COPY Release/bcrypt_lib.node
COPY /root/.RoonExtensions/lib/node_modules/node-red/node_modules/bcrypt/lib/binding/bcrypt_lib.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory ‘/root/.RoonExtensions/lib/node_modules/node-red/node_modules/bcrypt/build’

  • node-red@1.0.6
    added 330 packages from 339 contributors in 159.585s
    [ SUB1 ] DietPi-Services > stop
    [ OK ] DietPi-Services | stop : cron
    [ OK ] DietPi-Services | stop : darkice
    [ OK ] DietPi-Services | stop : icecast2
    [ OK ] DietPi-Services | stop : roon-extension-manager
    [ OK ] DietPi-Services | stop : roonbridge

DietPi-Software
─────────────────────────────────────────────────────
Mode: Optimise and configure software

[ INFO ] DietPi-Software | Applying DietPi optimisations and configurations for RPi 3 Model B (armv7l), please wait…

DietPi-Software
─────────────────────────────────────────────────────
Mode: Configuring Node-Red: tool for wiring devices, APIs and online services

[ SUB1 ] DietPi-Services > dietpi_controlled
[ OK ] DietPi-Services | dietpi_controlled : roonbridge
[ OK ] DietPi-Services | dietpi_controlled : roon-extension-manager
[ OK ] DietPi-Services | dietpi_controlled : icecast2
[ OK ] DietPi-Services | dietpi_controlled : darkice
[ OK ] DietPi-Services | dietpi_controlled : node-red
[ OK ] DietPi-Services | dietpi_controlled : cron
[ OK ] DietPi-Survey | Purging survey data

DietPi-Software
─────────────────────────────────────────────────────
Mode: Installation completed

[ SUB1 ] DietPi-Services > restart
[ OK ] DietPi-Services | restart : roonbridge
[ OK ] DietPi-Services | restart : roon-extension-manager
[ OK ] DietPi-Services | restart : icecast2
[ OK ] DietPi-Services | restart : darkice
> [FAILED] DietPi-Services | restart : node-red
[ OK ] DietPi-Services | restart : cron

I don’t think @Dan_Knight visits this forum anymore.
His absence seemed to coincide with the rise of Ropieee.

You’ll probably get some response on the DietPi forum.

1 Like