npm install --save anerdins/node-red-contrib-nibepi#master
Ei ihan heittämällä toimi tuo komento. Olisikohan minulla liian uusi node.js tuohon (16.03.00) tms. Vähän sen suuntaista herjaa antaa logi. Tai sitten liittyy Node-rediin joka pyörii dockerissa..
pistin node-red: lokaalisti raspiin mutta tuo nibepi pukkaa erroria. Onko kukaan törmännyt vastaavaan?
:
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (
https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (
https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (
https://github.com/visionmedia/debug/issues/797)
npm ERR! code 1
npm ERR! path /home/pi/.node-red/node_modules/nibepi/node_modules/@serialport/bindings
npm ERR! command failed
npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! make: Entering directory '/home/pi/.node-red/node_modules/nibepi/node_modules/@serialport/bindings/build'
npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
npm ERR! make: Leaving directory '/home/pi/.node-red/node_modules/nibepi/node_modules/@serialport/bindings/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@16.13.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/nodejs/node-v16.13.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
Edit: taitaa olla kiinni noista package.json dependencieistä. Ei taida serialport versiot mätsätä
Edit: Nyt toimii asennus. piti vanhemmat versiot asennella. Node.js 12.x.x ja Node-red 1.3.4