FAQ

The script/process is not exiting/quiting

var usbDetect =require('usb-detection');

// Do some detection

usbDetect.startMonitoring();

// After this call, the process will be able to quit

usbDetect.stopMonitoring();

Development (compile from source)

This assumes you also have everything on your system necessary to compile ANY native module for Node.js. This may not be the case, though, so please ensure the following requirements are satisfied before filing an issue about "Does not install". For all operating systems, please ensure you have Python 2.x installed AND not 3.0, node-gyp (what we use to compile) requires Python 2.x.

If you already have Python 3 installed, you can install Python 2 alongside and
create a symlink called python2.exe via mklink "C:\Python27\python2.exe" "C:\Python27\python.exe"
and add the directory to your path.

Mac OS X:

Ensure that you have at a minimum, the xCode Command Line Tools installed appropriate for your system configuration. If you recently upgraded your OS, it probably removed your installation of Command Line Tools, please verify before submitting a ticket.

Linux:

You know what you need for you system, basically your appropriate analog of build-essential. Keep rocking!

To compile and install native addons from npm you may also need to install build tools (source):