# Cannot install "co2monitor 0.0.1"

**URL:** https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743
**Category:** General
**Created:** [27 March 2020 16:25 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743 "2020-03-27T16:25:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![fehlkauf](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fehlkauf/32/91721_2.png) [@fehlkauf](https://discourse.nodered.org/u/fehlkauf)
#### Post date: [27 March 2020 16:25 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/1 "2020-03-27T16:25:49Z")

</div>

Hello,  
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 co2monitor@0.0.1**  
\*\*2020-03-27T16:20:52.415Z [out] \*\*  
**2020-03-27T16:20:52.415Z [out] \> node-hid@1.2.0 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

Jens

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [27 March 2020 16:38 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/2 "2020-03-27T16:38:04Z")

</div>

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 ☹

---

<div class="post-metadata">

### Author: ![fehlkauf](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fehlkauf/32/91721_2.png) [@fehlkauf](https://discourse.nodered.org/u/fehlkauf)
#### Post date: [27 March 2020 16:55 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/3 "2020-03-27T16:55:47Z")

</div>

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...

best regards  
jens

---

<div class="post-metadata">

### Author: ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)
#### Post date: [27 March 2020 17:14 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/4 "2020-03-27T17:14:15Z")

</div>

> [@fehlkauf](#):
>
> **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**`**

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.

---

<div class="post-metadata">

### Author: ![fehlkauf](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fehlkauf/32/91721_2.png) [@fehlkauf](https://discourse.nodered.org/u/fehlkauf)
#### Post date: [28 March 2020 19:25 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/5 "2020-03-28T19:25:05Z")

</div>

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.

**echo $PKG\_CONFIG\_PATH**  
--\> no output

**env**  
--\> 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.  
Jens

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [28 March 2020 22:33 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/6 "2020-03-28T22:33:47Z")

</div>

Which package did you install ? You said libusb-1.0. But the advice was to install libusb-dev.

---

<div class="post-metadata">

### Author: ![fehlkauf](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fehlkauf/32/91721_2.png) [@fehlkauf](https://discourse.nodered.org/u/fehlkauf)
#### Post date: [29 March 2020 18:36 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/7 "2020-03-29T18:36:55Z")

</div>

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.  
it said:

"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... 🙃  
Jens

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [28 May 2020 18:36 UTC](https://discourse.nodered.org/t/cannot-install-co2monitor-0-0-1/23743/8 "2020-05-28T18:36:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
