2013-08-18 36 views
2

我创建了自耕农的角度应用程序,当我执行命令咕噜我得到了以下错误咕噜:茉莉不支持了

Running "karma:unit" (karma) task 
WARN [config]: JASMINE is not supported anymore. 
     Please use `frameworks = ["jasmine"];` instead. 
WARN [config]: JASMINE_ADAPTER is not supported anymore. 
     Please use `frameworks = ["jasmine"];` instead. 
WARN [config]: LOG_INFO is not supported anymore. 
    Please use `karma.LOG_INFO` instead. 
ERROR [config]: Config file must export a function! 
    module.exports = function(config) { 
    config.set({ 
     // your config 
    }); 
    }; 

我怎么解决这个问题?

回答

5

It's just those two predefined terms (JASMINE and JASMINE_ADAPTER) that should not be used any more. All you have to do is open the config file ./config/karma.conf.js and comment out those terms and add frameworks = ["jasmine"];.

通过Yasuhiro Yoshida

+0

u能请您分享的链接? – Anenth

+0

你可以在谷歌上复制和过去这一行 http://yasuhiroyoshida.github.io/2013/05/20/jasmine-is-not-supported-angular_scenario-is-not-supported-and-econnrefused/ – sheplu

+0

'致命错误:端口9000已被另一个进程使用.' 但这个端口是grunt服务器! – Anenth