Note from maintainers: Nowadays you should use https://github.com/npm/node-which
Simply get the first path to a bin on any system.
var whereis = require('whereis');
whereis('wget', function(err, path) {
console.log(path);
});
// /usr/bin/wget