Heroku构建失败的Bower错误

时间:2015-08-29 02:08:28

标签: heroku build bower

请帮助我,我是关于heroku和bower的一切的新手,假设我理解的很少这里是heroku日志。

所有这一切都工作到昨天,突然发生的微小变化将无法正常部署

bower moment#>= 2.6.0                           resolved git://github.com/moment/moment.git#2.10.6
bower angular                                 resolution Unsuitable resolution declared for angular: 1.4.4
bower                                          ECONFLICT Unable to find suitable version for angular

npm ERR! Linux 3.13.0-57-generic
npm ERR! argv "/tmp/build_1c565364c27a4cdb7538ade6aae8f158//node-v0.12.4-linux-x64/bin/node" "/tmp/build_1c565364c27a4cdb7538ade6aae8f158/node-v0.12.4-linux-x64/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! fronted@1.0.0 postinstall: `./node_modules/bower/bin/bower install;`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fronted@1.0.0 postinstall script './node_modules/bower/bin/bower install;'.
npm ERR! This is most likely a problem with the fronted package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./node_modules/bower/bin/bower install;
npm ERR! You can get their info via:
npm ERR!     npm owner ls fronted
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:


 !     Push rejected, failed to compile nginx-buildpack app

这是bower.json

{
  "name": "ac",
  "version": "0.0.0",
  "dependencies": {
    "angular": "~1.4.0",
    "bootstrap": "~3.3.5",
    "angular-resource": "~1.4.0",
    "angular-ui-router": "~0.2.15",
    "angular-bootstrap": "~0.13.0",
    "spin": "~1.1.6",
    "angular-spinner": "~0.6.2",
    "moment-timezone": "~0.4.0",
    "angular-ui-select": "~0.12.0",
    "angular-sanitize": "~1.4.2",
    "intl-tel-input": "~6.0.4",
    "international-phone-number": "~0.0.8",
    "angular-cookies": "~1.4.3",
    "angular-ui-notification": "~0.0.11",
    "angular-loading-bar": "~0.8.0",
    "angular-sweetalert": "~1.1.0"
  },

  "resolutions": {
  "angular": "~1.4.0"
},

  "devDependencies": {
    "angular-mocks": "~1.4.0"
  },
  "appPath": "app",
  "moduleName": "frontApp",
  "resolutions": {
    "intl-tel-input": "~6.0.4",
    "angular": "1.4.4"
  }
}

1 个答案:

答案 0 :(得分:0)

在通过凉亭安装时刻之后,我遇到了同样的问题

为你的bower.json添加分辨率似乎可以解决它。

实施例   //依赖   },   "决议":{     " angular":" 1.5.0",     "时刻":" 2.12.0"   }