omcaree / node-pololumaestro

Node module for control of Pololu Maestro servo controllers
14 stars 16 forks source link

Can not install serialport dependency on Node.js v6.3.1 #12

Open Cabalbl4 opened 8 years ago

Cabalbl4 commented 8 years ago

npm ERR! Linux 3.13.0-92-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "--verbose" "pololu-maestro" npm ERR! node v6.3.1 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE

npm ERR! serialport@1.7.4 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@1.7.4 install script 'node-pre-gyp install --fallback-to-build'. 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 serialport package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs serialport npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls serialport npm ERR! There is likely additional logging output above. npm verb exit [ 1, true ]

This problem seems to be fixed by changing the version of serialport in package.json to current ("*"). It seems that the older serialport version is not compatible with current version of node anymore (compilation of native modules fails with lot of errors in nan.h)

Please consider a dependency upgrade :) npm-debug.log.zip