Rezcue
28 February 2021 20:12
1
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 ;/
Colin
28 February 2021 20:26
2
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
Rezcue
28 February 2021 20:29
4
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
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
Rezcue
28 February 2021 20:51
11
Thank u very much. Ill try it out!
Rezcue
28 February 2021 21:26
12
I love u.
Got nodejs v12 and it works.
Holy moly i was close to losing my mind.
1 Like
Colin
28 February 2021 21:39
13
For the future please copy/paste logs rather than posting screenshots, they are much easier to read.
Rezcue
28 February 2021 22:59
14
i tried. But since im a new user i cant post so much.
Colin
1 March 2021 07:40
15
Ok, that should not be a problem next time.
system
Closed
15 March 2021 07:40
16
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.