I needed to add a hashbang to this script for it to work after an "npm link": #!/usr/bin/env node