如何解决无法通过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,请尝试强制安装
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。