简体   繁体   中英

yeoman : jit-grunt error with grunt serve

I'm trying to use to build angular app using yeoman and Grunt. But when I try to launch the app using 'grunt serve' I got this error

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.

Is there a way to solve it. Thank in advance

ps: I'm using windows 10, 64 bit

Try installing grunt-wiredep: npm install --save-dev grunt-wiredep

More details https://github.com/stephenplusplus/grunt-wiredep

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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