# Problem installing node-red-contrib-xiaomi-ble

**URL:** <https://discourse.nodered.org/t/problem-installing-node-red-contrib-xiaomi-ble/25307>\
**Category:** General\
**Created:** [22 April 2020 14:37 UTC](https://discourse.nodered.org/t/problem-installing-node-red-contrib-xiaomi-ble/25307 "2020-04-22T14:37:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanbal](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanbal](https://discourse.nodered.org/u/juanbal)\
**Post date:** [22 April 2020 14:37 UTC](https://discourse.nodered.org/t/problem-installing-node-red-contrib-xiaomi-ble/25307/1 "2020-04-22T14:37:43Z")

</div>

Hello all  
I'm running node-red under docker (Node-RED version: v1.0.5 and Node.js version: v10.20.0) and  
I'm trying to install node-red-contrib-xiaomi-ble.  
Hardware is RaspBerry Pi 4

I'm getting in the log

> [warn] [node-red-contrib-xiaomi-ble/xiaomi-ble] Error: EAFNOSUPPORT, Address family not supported by protocol

node-red is not running inside the docker as root, so following the [documentation](https://flows.nodered.org/node/node-red-contrib-xiaomi-ble) I landed on [noble documentation](https://github.com/noble/noble#running-on-linux) and executed the _setcap cap\_net\_raw+eip_ but the problem remains.  
However, I don't think this is the problem as it occurs while installing the node via the palette.

Bluetooth from the host system is working with no problems using gatt commandline tool.

Any suggestion about how to correct the installation error?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dave/32/10827_2.png) [@Dave](https://discourse.nodered.org/u/Dave)\
**Post date:** [22 April 2020 17:10 UTC](https://discourse.nodered.org/t/problem-installing-node-red-contrib-xiaomi-ble/25307/2 "2020-04-22T17:10:46Z")

</div>

I am not running docker, but had same problem installing node-red-contrib-xiaomi-ble on raspberry pi4 , I also have a pi 3b which is working the only difference is that on that pi is node is v8.11.3

so I reverted node on the raspberry pi4 from v12. whatever it was to v8.11.3 and that resolved the problem. that also resolved the problem of installing node-red-contrib-oled and node-red-contrib i2c

I know its not the ideal solution, but until the nodes are updated to work with the latest node version its the only thing that worked for me.

sudo npm install -g n  
then  
sudo n 8.11.3  
PATH="$PATH"  
check that answer is v8.11.3  
node -v  
reboot  
then reinstall node-red-contrib-xiaomi-ble from the palette manager

---

<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:** [21 June 2020 17:10 UTC](https://discourse.nodered.org/t/problem-installing-node-red-contrib-xiaomi-ble/25307/3 "2020-06-21T17:10:50Z")

</div>

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