找不到插件
Plugin not found
我是 JS 生态系统的新手,所以请原谅我犯的一些愚蠢的错误。 :-)
我正在尝试使用 Yeoman 生成 AngularJS 应用程序。我这样做了,但是在做 'grunt serve' 时我得到的错误是:
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.
请运行npm install
因为这将安装 package.json
中定义的所有依赖项
我是 JS 生态系统的新手,所以请原谅我犯的一些愚蠢的错误。 :-)
我正在尝试使用 Yeoman 生成 AngularJS 应用程序。我这样做了,但是在做 'grunt serve' 时我得到的错误是:
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.
请运行npm install
因为这将安装 package.json