【问题标题】:yeoman : jit-grunt error with grunt serveyeoman : grunt serve 的 jit-grunt 错误
【发布时间】:2016-01-23 20:30:36
【问题描述】:

我正在尝试使用 yeoman 和 Grunt 构建 Angular 应用程序。 但是当我尝试使用“grunt serve”启动应用程序时,我收到了这个错误

grunt serve
Running "serve" task

Running "clean:server" (clean) task
>> 0 paths cleaned.

jit-grunt: Plugin for the "wiredep" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "wiredep" failed. Use --force to continue.

Aborted due to warnings.


Execution Time (2015-10-24 09:44:44 UTC)
loading tasks                175ms  ███████████████████ 55%
serve                         43ms  █████ 14%
loading grunt-contrib-clean   51ms  ██████ 16%
clean:server                  44ms  █████ 14%
Total 317ms

我尝试按照https://github.com/shootaroo/jit-grunt#static-mappings 中的说明在 Grunfile.js 中设置静态映射,但仍然显示相同的错误。

有没有办法解决。 提前致谢

ps:我使用的是 Windows 10、64 位

【问题讨论】:

  • 这个问题你解决了吗。我也有同样的问题,不胜感激。
  • 是的,尝试像这样安装 grunt-wiredep:github.com/stephenplusplus/grunt-wiredep
  • 感谢@Fares,我通过再次清理和拉取源解决了这个问题。感谢您的帮助

标签: javascript angularjs node.js gruntjs yeoman


【解决方案1】:

尝试安装 grunt-wiredep: npm install --save-dev grunt-wiredep

更多详情https://github.com/stephenplusplus/grunt-wiredep

【讨论】:

    猜你喜欢
    • 2015-07-28
    • 1970-01-01
    • 1970-01-01
    • 2015-05-19
    • 2014-04-03
    • 1970-01-01
    • 2014-12-18
    • 2016-07-28
    • 1970-01-01
    相关资源
    最近更新 更多