-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Sorry to open this as an issue - more then likely i am doing something wrong, but i can not get this installed or running on my respberry pi using jessie.
in a clean install of raspberien i have done the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-smbus i2c-tools python-rpi.gpio python-rpi.gpio python-dev nodejs npm
Then i've done a git clone of the repo
then i've tried to install using npm but get the following:
`npm install rpi-ws2801
/
microtime@2.0.0 install /home/pi/node-rpi-ws2801/node_modules/rpi-ws2801/node_modules/microtime
node-gyp rebuild
make: Entering directory '/home/pi/node-rpi-ws2801/node_modules/rpi-ws2801/node_modules/microtime/build'
CXX(target) Release/obj.target/microtime/src/microtime.o
In file included from ../src/microtime.cc:9:0:
../node_modules/nan/nan.h:316:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
microtime.target.mk:82: recipe for target 'Release/obj.target/microtime/src/microtime.o' failed
make: *** [Release/obj.target/microtime/src/microtime.o] Error 1
make: Leaving directory '/home/pi/node-rpi-ws2801/node_modules/rpi-ws2801/node_modules/microtime/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.1.19+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/node-rpi-ws2801/node_modules/rpi-ws2801/node_modules/microtime
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! microtime@2.0.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the microtime@2.0.0 install script.
npm ERR! This is most likely a problem with the microtime 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 their info via:
npm ERR! npm owner ls microtime
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.19+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "rpi-ws2801"
npm ERR! cwd /home/pi/node-rpi-ws2801
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/node-rpi-ws2801/npm-debug.log
npm ERR! not ok code 0
`
npm-debug.log is attached
Are you able to point me in the right direction? also how do you execute the example?