简体   繁体   中英

Bower install AngularJS failing

We use bower in our project to download front end related scripts. The project is hosted on Heroku. bower install is part of the build script. Everything was working fine until yesterday. Suddenly, bower is unable to install AngularJS.

Here's my 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"
  }
}

The error while building is

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

This is breaking the build of new commits in Heroku as well. Why could this be happening? All was fine until yesterday.

The core of the error is this

ECONFLICT Unable to find suitable version for angular

通过Bower为应用程序指定依赖项时,某些软件包可能依赖于同一库的不同版本。

bower install angular#latest --save -F

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM