本文介绍了GruntJs'grunt'cmd打开Visual Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经能够在零个问题的几个个人项目上使用。我决定在工作中使用它。



我运行: code>等它立即打开Visual Studio并打开gruntfile。实际上没有发生。



我做错了吗?

解决方案

我没有阅读常见问题解答... HREF = https://github.com/gruntjs/grunt/wiki/Frequently-Asked-Questions> https://github.com/gruntjs/grunt/wiki/Frequently-Asked-Questions

编辑



您也可以使用 DOSKEY 命令:

  DOSKEY grunt = grunt.cmd $ * 


I have been able to use GruntJs on several personal projects with zero problems. I decided I would use it on my project at work.

I run: grunt init:gruntfile and that creates the gruntfile and the package.json file just fine.

The problem is that whenever I run any grunt cmd grunt or grunt lint etc it immediately opens up Visual Studio and opens the gruntfile. Nothing actually happens.

Any idea what I am doing wrong?

解决方案

I didnt read the FAQ...

https://github.com/gruntjs/grunt/wiki/Frequently-Asked-Questions

EDIT

Alternatively you could use the DOSKEY command:

DOSKEY grunt=grunt.cmd $*

这篇关于GruntJs'grunt'cmd打开Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 20:51