0

我第一次同时使用 yeoman、grunt 和 bower。

按照本教程,我在无法启动的地方遇到了服务器没有启动并给我一个错误

WANRNING: ENOENT, no such file or directory 'c:\wamp\www\yo\app\bower.json'

我在这里找到了该错误的解决方案,现在我没有收到错误。


但是在修复了那个错误之后,我运行了这个grunt serve命令。并开始出现此错误(很少或很少见)

Running "concurrent:server" (concurrent) task
     Warning: Use --force to continue.

     Aborted due to warnings.

或此错误(最常发生的错误)

Warning: grunt-cli: The grunt command line interface. (v0.1.13) Use --force to continue.

    Aborted due to warnings.

如果我grunt serve --force当然运行,它会以黄色文本运行

Warning:   Used --force, continuing.

有人帮我解决这个问题。

提前致谢。

4

1 回答 1

3

在这里找到了解决方案。

问题是依赖项没有正确安装。

并通过运行

  1. npm 安装
  2. 凉亭安装

我能够运行 grunt serve 而没有任何错误。

于 2014-09-10T10:36:42.213 回答