visual-studiovisual-studio-2015gruntjstask-runner-explorer

Fails to run Gruntfile.js in Visual Studio 2015 Update 2


After upgrading to Visual Studio 2015 Update 2 I am unable to load my gruntfile.js. When I open "Task Runner Explorer" and try to refresh the gruntfile.js it writes the following in my output window:

Failed to run "(PATH)\Gruntfile.js"... cmd.exe /c grunt -b "(PATH)" --gruntfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs-grunt-task-reader

Any ideas?


Solution

  • It looks like you deleted/moved/lost your nodejs packages, so they'll need reinstalling.

    Run npm install from the command line in the folder that contains package.json.