找不到插件

时间:2017-06-15 11:15:39

标签: angularjs gruntjs

我对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.

我现在缺少哪个插件,如何安装?

===更新===

按照建议安装grunt-clean后,新错误是:

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.

1 个答案:

答案 0 :(得分:2)

请运行npm install 因为这将安装package.json

中定义的所有依赖项