Multiple issues running grunt.cmd on windows Multiple issues running grunt.cmd on windows windows windows

Multiple issues running grunt.cmd on windows


First, you should have the grunt-cli package installed globally:

npm install -g grunt-cli

Next, make sure you have grunt installed in your project folder.

You can do this by:

  • Making sure grunt is part of your package.json and run: npm install
  • Going to your project folder and just npm install grunt

After this, you shouldn't have any trouble running Grunt.


Did you install grunt-cli?

My grunt.cmd content looks like that:

:: Created by npm, please don't edit manually.@IF EXIST "%~dp0\node.exe" (  "%~dp0\node.exe"  "%~dp0\node_modules\grunt-cli\bin\grunt" %*) ELSE (   node  "%~dp0\node_modules\grunt-cli\bin\grunt" %*)