最佳答案
嗨,我正在尝试安装 Grunt 在 Windows 764位。我已经安装 Grunt 使用命令
npm install -g grunt
npm install -g grunt-cli
但是现在如果我尝试做 grunt init
,它抛给我一个错误-
找不到有效的 Gruntfile。请参阅开始 关于如何配置步兵的更多信息指南: Http://gruntjs.com/getting-started 致命错误: 无法找到 Gruntfile.
但是当我查看我系统上的步兵文件夹时,Gruntfile.js
就在那里。能有人请指导我如何正确安装这个咕哝和如何写建成脚本使用咕哝。我有一个 HTML 页面和 java 脚本,如果我想建立一个脚本使用 Grunt 我如何做到这一点?