无法通过docker和angularjs运行Bower安装

问题描述

当我的DockerFile尝试运行时

bower install --allow-root

我的输出中有以下错误

bower malarkey#~1.3.1                     invalid-Meta for:/tmp/54d5301ca4ac8eed08df9f9e0be95204/bower/5ad5356aae67f7eb24e62bd78904bec0-10-jLZ9CI/bower.json
bower malarkey#~1.3.1                     invalid-Meta The "main" field cannot contain minified files
bower malarkey#~1.3.1                         resolved https://github.com/yuanqing/malarkey.git#1.3.3
bower angular-scroll#^1.0.2                   mismatch Version declared in the json (1.0.0) is different than the resolved one (1.0.2)
bower angular-jwt#^0.1.11                     mismatch Version declared in the json (0.1.9) is different than the resolved one (0.1.11)
bower angular-file-upload#^2.5.0          invalid-Meta for:/tmp/54d5301ca4ac8eed08df9f9e0be95204/bower/e60440287b4df1cbc04045e77a8c05f5-10-xRC1SU/bower.json
bower angular-file-upload#^2.5.0          invalid-Meta The "main" field cannot contain minified files
bower angular-google-analytics#^1.1.9     invalid-Meta for:/tmp/54d5301ca4ac8eed08df9f9e0be95204/bower/f41b7351bf79de70b7910978744e7bc7-10-Av0m2D/bower.json
bower angular-google-analytics#^1.1.9     invalid-Meta The "main" field cannot contain minified files
bower jqvmap#^1.5.1                       invalid-Meta for:/tmp/54d5301ca4ac8eed08df9f9e0be95204/bower/4c269b1b72f5facccf21d5a6d730ee6e-10-J711uU/bower.json
bower jqvmap#^1.5.1                       invalid-Meta The "main" field cannot contain minified files
bower jqvmap#^1.5.1                           mismatch Version declared in the json (1.5.0) is different than the resolved one (1.5.1)
bower js-xlsx#^0.12.4                     invalid-Meta for:/tmp/54d5301ca4ac8eed08df9f9e0be95204/bower/8d63ef64e2b12f5b0d8616fa7e1b8597-10-w6KAFI/bower.json
bower js-xlsx#^0.12.4                     invalid-Meta The "main" field cannot contain minified files

bower                                        ECONFLICT Unable to find suitable version for angular-aria
The command '/bin/sh -c bower install --allow-root' returned a non-zero code: 1

这是在我安装“ angular-scroll”之后发生的,但是我找不到解决此问题的方法。 这使我无法构建扩展坞并更新服务器。

解决方法

bower install --force

如果您有一个未维护的 bower.json,请尝试强制安装

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...