2013-08-18 63 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