Visual Studio 2019中的Gulp麻烦

时间:2019-10-24 17:39:15

标签: javascript typescript npm gulp visual-studio-2019

我尝试通过Task Run Explorer在Visual Studio 2019中运行gulpfile.js,但是在输出中出现错误:

Failed to run "D:\...\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
gulp[5856]: src\node_contextify.cc:633: Assertion `args[1]->IsString()' failed.
 1: 00007FF61B19121A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4810
 2: 00007FF61B16A5B6 node::MakeCallback+4518
 3: 00007FF61B16A66F node::MakeCallback+4703
 4: 00007FF61B13D838 node::DecodeWrite+12952
 5: 00007FF61B995782 v8::internal::OptimizingCompileDispatcher::Unblock+60562
 6: 00007FF61B996908 v8::internal::OptimizingCompileDispatcher::Unblock+65048
 7: 00007FF61B995C3D v8::internal::OptimizingCompileDispatcher::Unblock+61773
 8: 00007FF61B995B5B v8::internal::OptimizingCompileDispatcher::Unblock+61547
 9: 000000BDBACDC5C1 

我也尝试从控制台运行,但出现相同的错误。有趣的是,我运行的第二本笔记本没有任何麻烦。但是,唯一不同的是Visual Studio-此gulpfile.js仅在Visual Studio 2017中可以正常工作。

有人知道如何解决吗?我真的不想在计算机上安装两个Visual Studio。没有意义。

0 个答案:

没有答案