【问题标题】:node.js - grunt server doesn't startnode.js - grunt 服务器没有启动
【发布时间】:2014-11-03 22:20:55
【问题描述】:

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

tutorial 之后,我在无法启动的地方遇到了服务器没有启动并给我一个错误

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

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


但是在修复了这个错误之后,我运行了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.

有人帮我解决这个问题。

提前致谢。

【问题讨论】:

    标签: javascript node.js gruntjs grunt-contrib-connect


    【解决方案1】:

    找到解决方案here

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

    通过运行

    1. npm 安装
    2. 凉亭安装

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-27
      • 1970-01-01
      • 1970-01-01
      • 2020-11-10
      • 2013-12-25
      • 2015-02-13
      • 2014-02-09
      • 2021-11-29
      相关资源
      最近更新 更多