Fix up a warning if you do not have node

This commit is contained in:
Matt Godbolt 2012-05-23 03:29:28 +01:00 committed by Matt Godbolt
parent f8efccbbd0
commit ff2a38fac2
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,11 @@
ifeq "" "$(shell which npm)"
default:
@echo "Please install node.js"
@echo "See http://howtonode.org/how-to-install-nodejs for more details"
exit 1
else
default: run
endif
node_modules: package.json
npm install