Use npm-run
.
From the readme:
Any executable available to an npm lifecycle script is available to npm-run
.
$ npm install mocha # mocha installed in ./node_modules
$ npm-run mocha test/* # uses locally installed mocha executable
$ npm install -g npm-run