在 Visual Studio 2015 更新 2 中无法 运行 Gruntfile.js
Fails to run Gruntfile.js in Visual Studio 2015 Update 2
升级到 Visual Studio 2015 Update 2 后,我无法加载 gruntfile.js。当我打开 "Task Runner Explorer" 并尝试刷新 gruntfile.js 时,它会在我的输出 window:
中写入以下内容
无法 运行“(PATH)\Gruntfile.js”...
cmd.exe /c g运行t -b "(PATH)" --g运行tfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs- g运行t-任务-reader
有什么想法吗?
看起来你 deleted/moved/lost 你的 nodejs 包,所以他们需要重新安装。
运行 npm install
来自包含 package.json
.
的文件夹中的命令行
我在 gruntfile.js 中有一个语法错误,但我怎么知道 grunt 没有告诉我任何事情。我恢复了 grunt 文件并且它起作用了。
升级到 Visual Studio 2015 Update 2 后,我无法加载 gruntfile.js。当我打开 "Task Runner Explorer" 并尝试刷新 gruntfile.js 时,它会在我的输出 window:
中写入以下内容无法 运行“(PATH)\Gruntfile.js”... cmd.exe /c g运行t -b "(PATH)" --g运行tfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs- g运行t-任务-reader
有什么想法吗?
看起来你 deleted/moved/lost 你的 nodejs 包,所以他们需要重新安装。
运行 npm install
来自包含 package.json
.
我在 gruntfile.js 中有一个语法错误,但我怎么知道 grunt 没有告诉我任何事情。我恢复了 grunt 文件并且它起作用了。