【发布时间】:2018-08-15 10:47:27
【问题描述】:
我将 Visual Studio 更新到 15.8,现在尝试使用 Task Runner Explorer 编译我的 less 文件时出现以下错误:
Failed to run "C:\Projects\TFS Git Repo\Main\src\Ljmu.Web.UI\Gruntfile.js"...
cmd.exe /c grunt -b "C:\Projects\TFS Git Repo\Main\src\Ljmu.Web.UI" --gruntfile "C:\Projects\TFS Git Repo\Main\src\Ljmu.Web.UI\Gruntfile.js" --tasks "c:\program files (x86)\microsoft visual studio\2017\enterprise\common7\ide\extensions\microsoft\web tools\taskrunnerexplorer\Scripts" vs-grunt-task-reader
grunt[10096]: src\node_contextify.cc:631: Assertion `args[1]->IsString()' failed.
1: 00007FF677EB82F5
2: 00007FF677E94156
3: 00007FF677E94221
4: 00007FF677E6A69A
5: 00007FF6784B5EB2
6: 00007FF6784B7008
7: 00007FF6784B636D
8: 00007FF6784B628B
9: 00000292D50841C1
欢迎任何想法...
编辑
从命令行运行时运行良好,所以我认为这只是 Task Runner Explorer 的问题。
【问题讨论】:
-
你试过答案here中的解决方案吗?
-
是的,谢谢,应该补充一点,我已经更新了 node.js,完全删除了我的 node_modules 文件夹并再次运行 npm install。那时我注意到从命令行运行 grunt 有效。我已将其报告给 VS 反馈,所以我们只能等着看我猜! @RobC
标签: visual-studio-2017 gruntjs task-runner-explorer