无法在Visual Studio 2015 Update 2中运行Gruntfile.js [英] Fails to run Gruntfile.js in Visual Studio 2015 Update 2

查看:103
本文介绍了无法在Visual Studio 2015 Update 2中运行Gruntfile.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆