2017-06-15 77 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