Visual Studio 2015 RC Gulp task runner not detecting tasks

后端 未结 6 2263
予麋鹿
予麋鹿 2021-02-18 18:08

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

6条回答
  •  清歌不尽
    2021-02-18 18:32

    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.

    • Close Visual Studio
    • Open node command prompt
    • cd [PROJECT_DIR]
    • npm cache clean
    • rimraf node_modules
      • This will delete the node_modules folder when windows fails because of deep nested paths
      • To install rimraf:
      • npm install rimraf -g
    • npm install

    Now, open Visual Studio and it should work.

提交回复
热议问题