To run a node command within the \"context\" of your installed node_modules, you can make an entry in the scripts field of package.json.
node_modules
scripts
package.json
I've saved this little script as ~/bin/npm-cmd on my computer:
~/bin/npm-cmd
#!/bin/bash PATH="$(npm bin):$PATH" "$@"
Then running npm-cmd PROGRAM …ARGS should look for PROGRAM in ./node_modules/.bin first, before falling back to normal lookup.
npm-cmd PROGRAM …ARGS
PROGRAM
./node_modules/.bin