Node-red-contrib-xbee wont install

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

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/
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 ;/

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

Cant post coz of 2 links mx sec pls

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

Ps, do you have build-essential installed?

sudo apt-get install build-essential
1 Like

yes did that too

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.

1 Like

Thank u very much. Ill try it out!

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

1 Like

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

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

Ok, that should not be a problem next time.

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