# Node-red-contrib-xbee wont install

**URL:** https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766
**Category:** General
**Created:** [28 February 2021 20:12 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766 "2021-02-28T20:12:51Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:12 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/1 "2021-02-28T20:12:51Z")

</div>

Im trying to install node-red-contrib-xbee in Node-Red on Rasbian. Get this error....

npm  
2021-02-28T20:02:52.971Z [err] ERR! code 1  
2021-02-28T20:02:52.971Z [err] npm ERR! path /home/pi/.node-red/node\_modules/node-red-contrib-xbee/node\_modules/@serialport/bindings  
2021-02-28T20:02:52.979Z [err] npm ERR!  
2021-02-28T20:02:52.979Z [err] command failed  
2021-02-28T20:02:52.979Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  
2021-02-28T20:02:52.979Z [err] npm ERR! make: Entering directory '/home/pi/.node-red/node\_modules/node-red-contrib-xbee/node\_modules/@serialport/bindings/build'  
2021-02-28T20:02:52.979Z [err] npm ERR!  
2021-02-28T20:02:52.979Z [err] CXX(target) Release/obj.target/bindings/src/serialport.o  
2021-02-28T20:02:52.979Z [err] npm ERR! make: Leaving directory '/home/pi/.node-red/node\_modules/node-red-contrib-xbee/node\_modules/@serialport/bindings/build'  
2021-02-28T20:02:52.980Z [err] npm  
2021-02-28T20:02:52.980Z [err] ERR! gyp info it worked if it ends with ok  
2021-02-28T20:02:52.980Z [err] npm ERR!

can anyonre relate or help me out pls?  
cant post more ;/

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [28 February 2021 20:26 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/2 "2021-02-28T20:26:26Z")

</div>

Can you go into your .node-red folder and try to install it manually please, then post the full log here. The command (from the .node-red folder) is  
`npm install node-red-contrib-xbee`

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:29 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/4 "2021-02-28T20:29:56Z")

</div>

Cant post coz of 2 links mx sec pls

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [28 February 2021 20:35 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/5 "2021-02-28T20:35:00Z")

</div>

You need to be in directory `/home/pi/.node-red` before you npm install.

Ps, do you have build-essential installed?

```auto
sudo apt-get install build-essential

```

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:40 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/6 "2021-02-28T20:40:13Z")

</div>

![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/dfdc86dc62dab716bde07c00926fa71d34e26b3c.png)

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:40 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/7 "2021-02-28T20:40:43Z")

</div>

![22](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/3/93f9cfed2974226f473dd2791e1c09d8aaf408e9.png)

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:41 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/8 "2021-02-28T20:41:15Z")

</div>

![33](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/267bb9e9a47d9dd59bfaa0d4f1b877558e45d6b1.png)

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:41 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/9 "2021-02-28T20:41:57Z")

</div>

> [@Steve-Mcl](#):
>
> `sudo apt-get install build-essential`

yes did that too

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [28 February 2021 20:50 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/10 "2021-02-28T20:50:02Z")

</div>

I have a feeling this is an issue with your node version. I recommend reverting to v14 or V12.

Also, search this forum for 'serial build error', it's been covered and solved many times.

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 20:51 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/11 "2021-02-28T20:51:43Z")

</div>

Thank u very much. Ill try it out!

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 21:26 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/12 "2021-02-28T21:26:15Z")

</div>

I love u.  
Got nodejs v12 and it works.  
Holy moly i was close to losing my mind.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [28 February 2021 21:39 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/13 "2021-02-28T21:39:11Z")

</div>

For the future please copy/paste logs rather than posting screenshots, they are much easier to read.

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [28 February 2021 22:59 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/14 "2021-02-28T22:59:06Z")

</div>

i tried. But since im a new user i cant post so much.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [1 March 2021 07:40 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/15 "2021-03-01T07:40:01Z")

</div>

Ok, that should not be a problem next time.

---

<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: [15 March 2021 07:40 UTC](https://discourse.nodered.org/t/node-red-contrib-xbee-wont-install/41766/16 "2021-03-15T07:40:57Z")

</div>

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