How to fix: No gulp tasks found by the Task Runner Explorer in Visual Studio 2013

The Task Runner Explorer extension for Microsoft Visual Studio 2013 found the gulpfile.js in my project, but the task in that file where not listed, just beneath the gulpfile.js, (No tasks found) was displayed, this was caused by missing dependencies.

image

 

To fix this:

Just open a command prompt.

Change directory to the folder containing the file “gulpfile.js”

Then enter: npm install

All dependency for gulp should be installed, now when you op the project in Visual Studio 2013 the tasks should be shown.

 

image

Leave a Reply

Your email address will not be published. Required fields are marked *

4 comments

  1. Fred says:

    That did it, thanks.

  2. Bjorn Ali Goransson says:

    Nowadays you can just right click package.json and choose Restore.

  3. Tim says:

    Thanks! Worked perfectly. Looked everywhere for a solution to this.

  4. Jacob says:

    Did nothing for me. My package.json does not have any gulp references but then I have other applications where Gulp task runner works without any gulp reference in package.json…