Gulp error in WebStorm: Failed to list gulp tasks

Posted echolife

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gulp error in WebStorm: Failed to list gulp tasks相关的知识,希望对你有一定的参考价值。

I have the same problem with webstorm after install a updated version of node. The solution for me is the following:

In the block Gulp where webstorm show the list of taskclick the cog icon and select gulp settings, in the section "Gulp package" add the path to the local gulp package(the gulp inside the node_modules in your project).

Example of path: yourproject ode_modulesgulp

 

Another way that would probably solve the problem is to remove the node_modules folder and run npm install again. You must have your dependencies registered in the package.json file

以上是关于Gulp error in WebStorm: Failed to list gulp tasks的主要内容,如果未能解决你的问题,请参考以下文章

使用Gulp任务和WebStorm调试Protractor测试

gulp-connect

[转] webpack debug in webstorm

前端脚手架是啥意思

Gulp简单应用

webstorm退出时提示保存