Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 执行wiredep后,在index.html和karma.conf.js中找不到包_Angularjs_Gruntjs_Bower_Jhipster_Wiredep - Fatal编程技术网

Angularjs 执行wiredep后,在index.html和karma.conf.js中找不到包

Angularjs 执行wiredep后,在index.html和karma.conf.js中找不到包,angularjs,gruntjs,bower,jhipster,wiredep,Angularjs,Gruntjs,Bower,Jhipster,Wiredep,我使用wiredep自动将ckeditor和ng文件上传到我的索引模板和karma.conf.js中。 我的项目是由jhipster启动的。 对于ckeditor包,我必须包含两个文件,ckeditor.js和ckeditor-angularjs.js,但wiredep不会复制这些文件。。。(我的index.html和karma.conf.js中没有这些文件) 在我的bower.json中,我有以下声明(在执行bower安装ckeditor angularjs--save之后): My Grun

我使用wiredep自动将ckeditor和ng文件上传到我的索引模板和karma.conf.js中。 我的项目是由jhipster启动的。 对于ckeditor包,我必须包含两个文件,ckeditor.js和ckeditor-angularjs.js,但wiredep不会复制这些文件。。。(我的index.html和karma.conf.js中没有这些文件)

在我的bower.json中,我有以下声明(在执行bower安装ckeditor angularjs--save之后):

My Grunfile.js:

wiredep: {
    app: {
        src: ['src/main/webapp/index.html'],
        exclude: [
            /angular-i18n/  // localizations are loaded dynamically
        ]
    },
    test: {
        src: 'src/test/javascript/karma.conf.js',
        exclude: [/angular-i18n/, /angular-scenario/],
        ignorePath: /\.\.\/\.\.\//, // remove ../../ from paths of injected javascripts
        devDependencies: true,
        fileTypes: {
            js: {
                block: /(([\s\t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi,
                detect: {
                    js: /'(.*\.js)'/gi
                },
                replace: {
                    js: '\'{{filePath}}\','
                }
            }
        }
    }
}
我在bower.json中测试了overrides选项,但它不起作用…:

"overrides": {
    "bootstrap": {
        "main": [
            "dist/js/bootstrap.js",
            "dist/css/bootstrap.css",
            "less/bootstrap.less"
        ]
    },
    "ckeditor-angularjs": {
        "main": [
            "./src/main/webapp/bower_components/ckeditor/ckeditor.js",
            "build/ckeditor-angularjs.min.js"
        ]
    },
    "ng-file-upload": {
        "main": "ng-file-upload-all.js"
    }
}
当我这样做时:grunt wiredep,我有以下错误:

Warning: Maximum call stack size exceeded Use --force to continue. Aborted due to warnings. 
使用--force-v参数:

Warning: Error: angular is not installed. Try running `bower install`. Used --force, continuing.
Done, but with warnings.
我不认为有角度的包装是个问题

你知道我怎么解决这个问题吗?
谢谢。

如果我删除bower.json中的覆盖,它会工作!但是我的index.html和karma.conf.json中没有导入。它与ng文件上传一起工作。。。。问题是我有“*”用于ckeditor版本。但是它是自动添加的…所以我认为问题在于angularjs ckeditor配置…如果我删除bower.json中的覆盖,它会工作!但是我的index.html和karma.conf.json中没有导入。它与ng文件上传一起工作。。。。问题是我有“*”用于ckeditor版本。但它是自动添加的…所以我认为问题在于angularjs ckeditor配置。。。
Warning: Error: angular is not installed. Try running `bower install`. Used --force, continuing.
Done, but with warnings.