简体   繁体   English

yeoman:与grunt发送的jit-grunt错误

[英]yeoman : jit-grunt error with grunt serve

I'm trying to use to build angular app using yeoman and Grunt. 我正在尝试使用yeoman和Grunt构建角度应用程序。 But when I try to launch the app using 'grunt serve' I got this error 但是当我尝试使用'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

I tried to set the Static mappings in Grunfile.js as indicated in https://github.com/shootaroo/jit-grunt#static-mappings but still show the same error. 我尝试在Grunfile.js中设置静态映射,如https://github.com/shootaroo/jit-grunt#static-mappings中所示,但仍显示相同的错误。

Is there a way to solve it. 有没有办法解决它。 Thank in advance 预先感谢

ps: I'm using windows 10, 64 bit ps:我正在使用Windows 10,64位

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

More details https://github.com/stephenplusplus/grunt-wiredep 更多细节https://github.com/stephenplusplus/grunt-wiredep

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM