use:
```make
NPM_INSTALLED_PROGRAMS = node_modules/.bin/mocha
$(NPM_INSTALLED_PROGRAMS):
	npm install
	touch $(NPM_INSTALLED_PROGRAMS)

test: node_modules/.bin/mocha
  ./node_modules/.bin/mocha ....
```