hi I cant install the node-red-contrib-onvif node,
it just comes up with
and (npm warn config production Use `--omit=dev` instead.
npm warn deprecated npmlog@4.1.2: This package is no longer supported.
npm warn deprecated are-we-there-yet@1.1.7: This package is no longer supported.
npm warn deprecated gauge@2.7.4: This package is no longer supported.
npm error code 1
npm error path /home/pi/.node-red/node_modules/sharp
npm error command failed
npm error command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm error sharp: Using cached /home/pi/.npm/_libvips/libvips-8.10.6-linux-armv7.tar.br
npm error
npm error make: Entering directory '/home/pi/.node-red/node_modules/sharp/build'
npm error TOUCH Release/obj.target/libvips-cpp.stamp
npm error CC(target) Release/obj.target/nothing/node_modules/node-addon-api/nothing.o
npm error rm -f Release/obj.target/node_modules/node-addon-api/nothing.a Release/obj.target/node_modules/node-addon-api/nothing.a.ar-file-list...)
any help would be much apreciated.
thanks
martin
There should be more to the error, including the path to a full log file at the end.
Please include that log file as it is likely to contain the full details of why npm failed to build a required native component for one of the dependencies of the node you are trying to install.
hi it was too long to add ,
log.txt
sorry about that , one of those days should be there now
Colin
23 October 2025 16:18
6
The start of the file is missing.
Colin
23 October 2025 16:21
7
Also, which version of pi os are you using (use cat /etc/os-release
), make sure that the package build-essential
is installed, and make sure all packages are up to date by running
sudo apt update && sudo apt full-upgrade
Make sure that runs without error.
sorry bear with me ,
node red
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/ "
SUPPORT_URL="http://www.raspbian.org/RaspbianForums "
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs "
pi@raspberrypi:~ $
just updating now
yes ran without error. thanks
should i try installing the node again
Colin
23 October 2025 16:48
11
Yes, in case the tools were out of date. Was build-essential already installed?
Colin
23 October 2025 17:00
13
apt policy build-essential
build-essential:
Installed: 12.9
Candidate: 12.9
Version table:
*** 12.9 500
500 Index of /raspbian bullseye/main armhf Packages
100 /var/lib/dpkg/status
just tried installling the node and no luck ,
thanks
martin
Colin
23 October 2025 17:38
16
Are you still able to install other nodes?
yes just tried,
just my luck lol