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

时间:2015-10-24 10:13:11

标签: javascript angularjs node.js gruntjs yeoman

我试图使用yeoman和Grunt来构建角度应用程序。 但是,当我尝试使用' 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位

1 个答案:

答案 0 :(得分:1)

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

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