Npm WARN This failure might be due to the use of legacy binary "node"
Gyp ERR! cwd /home/pi/node_modules/slack-client/node_modules/ws/node_modules/utf-8-validate Gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" Gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12) Gyp ERR! stack at ChildProcess.emit (events.js:98:17) Gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) Gyp ERR! stack Error: make failed with exit code: 2 Make: Leaving directory '/home/pi/node_modules/slack-client/node_modules/ws/node_modules/utf-8-validate/build' :84: recipe for target 'Release/obj.target/validation/src/validation.o' failed Static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8 node_modules/nan/nan.h:328:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
Make: Entering directory '/home/pi/node_modules/slack-client/node_modules/ws/node_modules/utf-8-validate/build'ĬXX(target) Release/obj.target/validation/src/validation.o Npm WARN package.json No repository install /home/pi/node_modules/slack-client/node_modules/ws/node_modules/utf-8-validate
Is there a dependency upon the node version which I cannot see? I have installed all the optional dependencies, although Coffee-Script and WS are at a higher level than $ sudo npm install slack-client I am trying to run a Slackbot server on my Raspberry Pi2, below is an error I am getting when installing using NPM.