What OS and version are you using?
Have you installed build-essential?
Check everything is up to date
sudo apt update && sudo apt full-upgrade
I'm running this:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
I just updated and upgraded everything as suggested but the error remains.
That is the same as me. I think it is a python problem of some sort. What do these commands show
which python
python --version
Here it is:
pi@raspberrypi:~ $ which python
/usr/bin/python
pi@raspberrypi:~ $ python --version
Python 3.9.2
The problem was an old version of node-gyp (3.8.0) being used for whatever reason (maybe a wrong or obsolete dependency somewhere):
2022-12-26T13:48:49.799Z [err] ERR! gyp info using node-gyp@3.8.0
I installed the latest version of node-gyp (9.3.1)...
cd ~/.node-red
sudo npm install node-gyp@latest
... and the installation of node-red-node-discovery ran like a charm.
So, problem solved!
Well diagnosed. I thought that node-gyp came with either npm or nodejs. I wonder how you ended up with an old one.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.