sudo npm install -g npm@2.x
hash -r
cd ~/.node-red
...I’ve just restarted from scratch (reformatted the sd card) and I see that in order to install node-red-contrib-dht-sensor I have to install node-dht-sensor and in order to install that, I need to install the BCM2835 library.
The BCM2835 library install runs fine but when I do 'npm install node-dht-sensor' I get
npm WARN engine node-dh...@0.0.8: wanted: {"node":">=0.12 <0.13"} (current: {"node":"0.10.36","npm":"1.4.28”})
so I upgraded npn to version 2.11.1 which allows 'node-dht-sensor’ to install but then 'node-red-contrib-dht-sensor’ fails.
So using npm v 1.4.28, I decided to install an old copy of 'node-dht-sensor' and version 0.0.8 -> 0.0.7 fail, but version 0.0.6 works and allows 'node-red-contrib-dht-sensor’ to install also.
Message from syslogd@FLOjab at Mar 1 16:08:04 ...
kernel:[ 2859.956751] Disabling IRQ #79
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/c3b8c6e7-946e-403f-9429-1f5d9e2df50c%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/c3b8c6e7-946e-403f-9429-1f5d9e2df50c%40googlegroups.com.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.48-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/i2c
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! Linux 4.4.48-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-bmp085"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
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! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 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
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/73023b82-f840-48d8-99bc-e555d3ab0431%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/F6DD2D7C-FA80-4DF1-9558-E1AC0C03DF0C%40zenofmud.org.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/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:211:12)
gyp ERR! System Linux 4.4.38-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/node-red-contrib-bmp085/node_modules/bmp085/node_modules/i2c
gyp ERR! node -v v4.7.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-bmp085"
npm ERR! node v4.7.3
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! i...@0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the i...@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/.node-red/npm-debug.log