當我嘗試在具有從NodeSource安裝的最新nodejs的Ubuntu 14.04盒子上運行「grunt install」時,出現以下錯誤。「grunt install」在Ubuntu上返回錯誤
jit-grunt:未找到「安裝」任務的插件。如果您已經安裝了 插件,請設置靜態映射。請參閱 https://github.com/shootaroo/jit-grunt#static-mappings
警告:任務「安裝」失敗。使用--force繼續。
由於警告而中止。
這裏是Gruntfile.js的部分相關的JIT咕嚕:
require('jit-grunt')(grunt, {
express: 'grunt-express-server',
useminPrepare: 'grunt-usemin',
ngtemplates: 'grunt-angular-templates',
cdnify: 'grunt-google-cdn',
protractor: 'grunt-protractor-runner',
injector: 'grunt-asset-injector',
buildcontrol: 'grunt-build-control'
});
有人可以指向正確的方向嗎?
下面是鏈接package.json。https://gist.github.com/digiwise/4d13cc807198ef8b3498 – 2014-10-04 20:31:47
是的,我沒有看到任何內容會提供一個名爲'install'的咕task任務,我想你錯誤地輸入了'grunt install' 。解決方案是不運行'grunt install' =) – 2014-10-06 12:33:18