Hello,
i get the following error we i try to install the BMP180 plugin.
My I²C is running probaly and I see the BMP (and the BH1750) if i try i2cdetect.
So i think it’s a problem with the i2c@0.1.8 package.
Any idea what to do?
Thanks
…/src/i2c.cc: In function ‘v8::Handlev8::Value WriteWord(const int&)’:
…/src/i2c.cc:282:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
i2c.target.mk:86: recipe for target ‘Release/obj.target/i2c/src/i2c.o’ failed
make: *** [Release/obj.target/i2c/src/i2c.o] Error 1
make: Leaving directory '/home/pi/node_modules/pimatic-bmp180/node_modules/sensor_bmp085/node_modules/i2c/build’
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.11+
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild"
gyp ERR! cwd /home/pi/node_modules/pimatic-bmp180/node_modules/sensor_bmp085/node_modules/i2c
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 4.4.11+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” "pimatic-bmp180@1.0.1"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
npm ERR! i2c@0.1.8 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the i2c@0.1.8 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the i2c package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs i2c
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls i2c
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log