我通过运行Yeoman生成了一个AngularJS项目
然后我跑了
建立项目。但是随后由于警告而放弃了构建:
Deans-MacBook-Air:frontend dean$ grunt
Running "newer:jshint" (newer) task
Running "newer:jshint:all" (newer) task
Running "jshint:all" (jshint) task
✔ No problems
Running "newer-postrun:jshint:all:1:/Users/dean/Desktop/myProjectName/frontend/node_modules/grunt-newer/.cache" (newer-postrun) task
Running "newer:jshint:test" (newer) task
No newer files to process.
Warning: Task "karma" not found. Use --force to continue.
Aborted due to warnings.
Execution Time (2014-07-18 07:37:37 UTC)
loading tasks 3ms ▇ 3%
newer:jshint 3ms ▇ 3%
newer:jshint:all 6ms ▇▇ 6%
jshint:all 75ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 79%
newer-postrun:...-newer/.cache 1ms ▇ 1%
newer:jshint:test 5ms ▇▇ 5%
Total 95ms
Deans-MacBook-Air:frontend dean$
是的...我尝试跑步
然后在安装完终端后重启我的终端,但这也不起作用。我正在使用运行OSX 10.9.4 fyi的macbook。
最佳答案
sudo npm install grunt-karma --save-dev