flags should be before the argument

npm install --save-dev grunt-contrib-jshint