我们在项目中使用bower来下载前端相关脚本。该项目托管在Heroku上。 bower install
是构建脚本的一部分。一切都很好,直到昨天。突然,凉亭无法安装AngularJS。
这是我的bower.json
{
"name": "laravel.app",
"version": "0.0.1",
"dependencies": {
"jquery": "3.2.0",
"angular": "1.6.4",
"bootstrap": "3.3.7",
"angular-ui-router": "^0.4.2",
"angular-sanitize": "1.6.4",
"angular-route": "1.6.4",
"angular-toastr": "^2.1.1",
"components-font-awesome": "^4.7.0",
"angular-google-picker": "^0.2.2",
"foundation-datepicker": "^1.5.6",
"chart.js": "^2.7.0",
"ng-lodash": "^0.5.0",
"moment": "^2.18.1"
}
}
构建时的错误是
bower angular#~1.4 cached https://github.com/angular/bower-angular.git#1.4.14
bower angular#~1.4 validate 1.4.14 against https://github.com/angular/bower-angular.git#~1.4
bower ECONFLICT Unable to find suitable version for angular
这也打破了Heroku中新提交的构建。为什么会发生这种情况?一切都很好,直到昨天。
错误的核心是这个
ECONFLICT Unable to find suitable version for angular
答案 0 :(得分:1)
当您通过Bower为您的app指定依赖项时,某些软件包可能依赖于同一个库的不同版本。
bower install angular#latest --save -F