自卫军:发球失误

yeoman : jit-grunt error with grunt serve

本文关键字:自卫军      更新时间:2023-09-26

我正在尝试使用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

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

有办法解决它吗?提前感谢

ps:我用的是windows 10, 64位

尝试安装grunt- wiredp:NPM install——save-dev grunt- wiredp

详细信息https://github.com/stephenplusplus/grunt-wiredep

相关文章: