I removed the old version of grunt first, then I installed the new grunt version, and then I got this error:
D:\\www\\grunt-test\\grunt grunt-cli: The
Could be a few problems here depending on what version of grunt is being used. Newer versions of grunt actually specify that you have a file named Gruntfile.js
(instead of the old grunt.js
).
You should have the grunt-cli
tool be installed globally (this is done via npm install -g grunt-cli
). This allows you to actually run grunt
commands from the command line.
Secondly make sure you've installed grunt locally for your project. If you see your package.json
doesn't have something like "grunt": "0.4.5"
in it then you should do npm install grunt --save
in your project directory.