安装了所有karma和jasmine依赖项,但在运行grunt测试时出现以下错误
Running "karma:unit" (karma) task
21 03 2017 18:07:33.233:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
21 03 2017 18:07:33.235:INFO [launcher]: Launching browser Chrome with unlimited concurrency
21 03 2017 18:07:33.252:INFO [launcher]: Starting browser Chrome
Fatal error: spawn UNKNOWN
来自Karm.conf.js的以下代码
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
// Default Dependecies
'../bower_components/jquery/dist/jquery.js',
'../bower_components/angular/angular.js',
'../bower_components/angular-mocks/angular-mocks.js',
'spec/*.js'
],
exclude: [
],
preprocessors: {
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity
})
}