mrenoon
2/12/2018 - 7:05 AM

Solving node-hid error in Ubuntu

solving node-hid error when npm i

Error:
node-hid@0.5.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-hid@0.5.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vu/.npm/_logs/2018-02-12T06_59_18_185Z-debug.log
How to resolve:
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
sudo apt-get install libusb-1.0-0-dev