gpt4 book ai didi

javascript - 自耕农 : jit-grunt error with grunt serve

转载 作者:搜寻专家 更新时间:2023-10-31 23:24:36 26 4
gpt4 key购买 nike

我正在尝试使用 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:npm install --save-dev grunt-wiredep

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

关于javascript - 自耕农 : jit-grunt error with grunt serve,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33316986/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com