【问题标题】:Impossible to run bower install with docker and angularjs无法使用 docker 和 angularjs 运行 bower install
【发布时间】:2020-08-19 12:18:21
【问题描述】:

当我的 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”之后,但我找不到解决此问题的方法。 这会阻止我构建我的扩展坞并更新我的服务器。

【问题讨论】:

标签: angularjs docker bower


【解决方案1】:
bower install --force

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-02-20
    • 2016-05-03
    • 2014-12-14
    • 1970-01-01
    • 2016-12-23
    • 2017-05-14
    • 2017-02-12
    • 1970-01-01
    相关资源
    最近更新 更多