I have a Gulpfile.js in Visual Studio 2015 RC with a single default task. For some reason it is not showing up in the Task Runner Explorer
.
I had added gulp to the devDependencies in my package.json
file and saved it.
I have a Gulpfile.js in Visual Studio 2015 RC with a single default task. For some reason it is not showing up in the Task Runner Explorer
.
I had added gulp to the devDependencies in my package.json
file and saved it.
Answer taken from another question about gulp, but this worked for me
For me, Visual Studio crashed while installing the npm modules and it caused corruption in the npm cache.
I had to clean the cache, delete node_modules, and install again.
Now, open Visual Studio and it should work.
In the release candidate, editing the devDependencies in
package.json
and then saving does not result in the packages being automatically restored/added to the project as I had expected. After savingpackage.json
the packages were listed under NPM in the Dependencies node in Solution explorer, but with a caption"not installed"
next to the package names. Manually invokingRestore Packages
, as shown in the screenshot, causes Visual Studio to install the pacakges.After the node modules had been installed the gulp tasks were detected by the
Task Runner Explorer
.I hope this helps someone else.
This is old question but same issue could be faced by VS 2017 users.
I was facing same issue in VS 2017 and mistakenly, I had added gulpfile.js in the sub folder.
Make sure gulpfile.js is in the root folder. gulpfile should be in root folder
I had the same problem and no-one of suggested method works for me. After re-installing NPM Task Runner the problem gone away. You can download latest NPM Task Runner from marketplace in following link.
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.NPMTaskRunner
I was also facing the same issue. Just restarted Visual Studio after adding the tasks to gulpfile.js and my problem was solved. All tasks were listed.