I cannot install the flow palette for "co2monitor 0.0.1". I try to use the web interface.
The error log says
2020-03-27T16:20:45.977Z installieren : co2monitor 0.0.1
2020-03-27T16:20:46.014Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production email@example.com
**2020-03-27T16:20:52.415Z [out] **
2020-03-27T16:20:52.415Z [out] > firstname.lastname@example.org install /home/pi/.node-red/node_modules/node-hid
2020-03-27T16:20:52.415Z [out] > prebuild-install || node-gyp rebuild
**2020-03-27T16:20:52.415Z [out] **
2020-03-27T16:20:53.223Z [err] prebuild-install
2020-03-27T16:20:53.223Z [err] WARN
2020-03-27T16:20:53.223Z [err] install No prebuilt binaries found (target=10.19.0 runtime=node arch=arm libc= platform=linux)
2020-03-27T16:20:54.366Z [err] Package libusb-1.0 was not found in the pkg-config search path.
2020-03-27T16:20:54.366Z [err] Perhaps you should add the directory containing
libusb-1.0.pc'** **2020-03-27T16:20:54.366Z [err] to the PKG_CONFIG_PATH environment variable** **2020-03-27T16:20:54.366Z [err] No package 'libusb-1.0' found** **2020-03-27T16:20:54.366Z [err] gyp: Call to 'pkg-config libusb-1.0 --cflags-only-I | sed s/-I//g' returned exit status 0 while in binding.gyp. while trying to load binding.gyp** **2020-03-27T16:20:54.386Z [err] gyp ERR! configure error ** **2020-03-27T16:20:54.386Z [err] gyp ERR! stack Error: gyp` failed with exit code: 1
2020-03-27T16:20:54.386Z [err] gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
2020-03-27T16:20:54.386Z [err] gyp ERR! stack at ChildProcess.emit (events.js:198:13)
2020-03-27T16:20:54.386Z [err] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
2020-03-27T16:20:54.386Z [err] gyp ERR! System Linux 4.19.97-v7l+
2020-03-27T16:20:54.386Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-03-27T16:20:54.386Z [err] gyp ERR! cwd /home/pi/.node-red/node_modules/node-hid
Can somebody help me understand what the problem is.
Thamm you very much
Its version 0.0.1 - hasn't been updated in 4 years and the source code isn't available
I think you are out of luck in trying to use it
yes I saw that it was not brand new... but I thought as long as it is in the catalogue it should at least be installable.
Unfortunatly I cannot contact the maintainer. There is no Mailadresse or the contact data.
Too bad, this was exactly what I needed...
Here’s the part that fails. It needs to compile sources, but the platform you’re running it on has libraries missing needed for it, specifically one dealing with usb devices. If you’re on linux, try installing
libusb-dev through your package manager and retry.
Thank you! As I said I am completely new to Linux and I think this leads to even more questions....
So I managed to install libusb-1.0 and retried. Now the error massege is the same. I think the path of this package I recently installed is not yet registered to the PATH variable.
So I asked google how to append the path of the corresponding .pc file to PKG_CONFIG_PATH. But that environmental variable does not exist on my system. So all attempts to add the path lead to nothing.
--> no output
--> shows a lot of vars but nothing with PKG*
Do I have to define the var by myself? Is sth wrong with PKG-CONF?
Thank you for your help.
Which package did you install ? You said libusb-1.0. But the advice was to install libusb-dev.
ok, I think now I managed to install the package.
Thank you. After libusb-dev was installed another long error log appeared and I had to install another -dev package.
After that it installed the "co2-monitor" block set.
But there seems to be no end: now I am getting an error message in the debug sidebar from node-red.
"HID interface run on error: Error: cannot open device with vendor id 0x4d9 and product id 0xa052"
As the sensor I am trying to connect to the rapspi is an USB device I guess it has something to do with missing or wrong configuration?
lsusb shows that the device is at least there and with the above IDs. But I don't know if the right class is defined for the sensor. Does "HID interface" mean that he tries to deal with an input device (as a mouse or keyboard)? I assume that that would not be the correct behavior.
I would be pleased to get more help here. I am learning with every new error message...
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.