无法在Visual Studio 2015 Update 2中运行Gruntfile.js [英] Fails to run Gruntfile.js in Visual Studio 2015 Update 2
问题描述
升级到Visual Studio 2015 Update 2后,我无法加载gruntfile.js.当我打开任务运行器资源管理器"并尝试刷新gruntfile.js时,它将在我的输出窗口中写入以下内容:
After upgrading to Visual Studio 2015 Update 2 I am unable to load my gruntfile.js. When I open "Task Runner Explorer" and try to refresh the gruntfile.js it writes the following in my output window:
无法运行(PATH)\ Gruntfile.js" ... cmd.exe/c grunt -b(PATH)" --gruntfile(PATH)\ Gruntfile.js" –任务"C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ TaskRunnerExplorer \ Scripts"vs-grunt-task-reader
Failed to run "(PATH)\Gruntfile.js"... cmd.exe /c grunt -b "(PATH)" --gruntfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs-grunt-task-reader
有什么想法吗?
推荐答案
您似乎已删除/移动/丢失了nodejs程序包,因此需要重新安装.
It looks like you deleted/moved/lost your nodejs packages, so they'll need reinstalling.
从包含package.json
的文件夹中的命令行运行npm install
.
Run npm install
from the command line in the folder that contains package.json
.
这篇关于无法在Visual Studio 2015 Update 2中运行Gruntfile.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!