【问题标题】:Error while executing grunt command执行 grunt 命令时出错
【发布时间】:2014-08-23 23:05:56
【问题描述】:

在尝试执行 grunt 命令时。

我在 windows 7 中使用了 yeoman、bower、generator-angular 和 grunt 以及 nodejs。

一切正常。我用 bower-install 添加了 font-awesome,为了更新我的 html,我执行了 gruntwiredep。

它会引发以下错误。

我的凉亭组件也在 app 文件夹之外,但在索引文件中,它以 bower_compontents/jquery/dist/jquery.js 开头,而不是 ../bower_components/jquery/dist/jquery.js。

【问题讨论】:

    标签: gruntjs


    【解决方案1】:

    问题出在节点模块上。

    我刚刚删除它并再次执行 npm install 。一切都很好:-)

    更改 bower_components 路径 在 .bowerrc 文件中,我更改了目录路径。 :-)

    【讨论】: