2017-06-15 73 views
1

我对JS生态系统非常陌生,请原谅我犯的一些愚蠢错误。 :-)未找到插件

我想使用Yeoman来生成一个AngularJS应用程序。我这样做,但做“咕噜服务”我得到的错误是:

Running "serve" task 

jit-grunt: Plugin for the "clean" 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 "clean:server" failed. Use --force to continue. 

Aborted due to warnings. 

哪个插件我现在能失踪,我怎么安装呢?

===更新===

安装咕噜清洁的建议之后,新的错误是:

Running "serve" task 
Loading "clean.js" tasks...ERROR 
>> TypeError: grunt.registerHelper is not a function 

Running "clean:server" (clean) task 
Warning: grunt.helper is not a function Use --force to continue. 

Aborted due to warnings. 

回答

2

请运行npm install ,因为这会在安装包中定义的所有依赖性。 json

+0

谢谢!它工作,但我得到这个错误后不得不使用'--force':警告:错误:找不到你的Bower软件包。使用 - 力量继续。“任何想法如何解决这个问题? – dotslash

+0

很高兴听到这些,谢谢! –

+0

你能帮我解决我在评论中提到的错误吗? :-) – dotslash