gpt4 book ai didi

gruntjs - 咕噜声 : JASMINE is not supported anymore

转载 作者:行者123 更新时间:2023-12-02 07:34:24 26 4
gpt4 key购买 nike

我用 yeoman 创建了一个角度应用程序,当我执行 grunt 命令时出现以下错误

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
});
};

我该如何解决这个错误?

最佳答案

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

关于gruntjs - 咕噜声 : JASMINE is not supported anymore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18295532/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com