首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ECONFLICT找不到适用于angular的版本

ECONFLICT找不到适用于angular的版本
EN

Stack Overflow用户
提问于 2016-02-06 18:23:04
回答 1查看 7.9K关注 0票数 2

这些是我在文件bower.json中的依赖项。它们中的大多数都与AngularJS有关。

代码语言:javascript
复制
"dependencies": {
  "angular": "~1.3.0",
  "jquery": "~2.1.1",
  "requirejs": "~2.1.15",
  "angular-resource": "~1.3.0",
  "requirejs-domready": "~2.0.1",
  "requirejs-plugins": "~1.0.3",
  "bootstrap-sass-official": "~3.3.0",
  "requirejs-text": "~2.0.12",
  "bourbon": "~4.0.2",
  "jQuery-Tag-This": "~1.1.0",
  "angular-masonry": "~0.9.1",
  "intl-tel-input": "~3.7.1",
  "ngInfiniteScroll": "~1.2.0",
  "moment-jalaali": "~0.3.3",
  "owl.carousel": "*",
  "persian-datepicker": "~0.3.6",
  "persian-date": "~0.1.8",
  "angular-ui-router": "~0.2.14",
  "angular-cookies": "~1.3.15"
}

当我运行bower install时,它给出了以下输出,并显示错误ECONFLICT Unable to find suitable version for angular

代码语言:javascript
复制
bower doc-ready#1.0.x                   validate 1.0.4 against git://github.com/desandro/doc-ready.git#1.0.x
bower get-style-property#~1.0.4           cached git://github.com/desandro/get-style-property.git#1.0.4
bower get-style-property#~1.0.4         validate 1.0.4 against git://github.com/desandro/get-style-property.git#~1.0.4
bower matches-selector#~1.0.2             cached git://github.com/desandro/matches-selector.git#1.0.3
bower matches-selector#~1.0.2           validate 1.0.3 against git://github.com/desandro/matches-selector.git#~1.0.2
bower fizzy-ui-utils#~1.0.1               cached git://github.com/metafizzy/fizzy-ui-utils.git#1.0.1
bower fizzy-ui-utils#~1.0.1             validate 1.0.1 against git://github.com/metafizzy/fizzy-ui-utils.git#~1.0.1
bower get-style-property#1.x              cached git://github.com/desandro/get-style-property.git#1.0.4
bower get-style-property#1.x            validate 1.0.4 against git://github.com/desandro/get-style-property.git#1.x
bower angular#~1.3.0                      cached git://github.com/angular/bower-angular.git#1.3.20
bower angular#~1.3.0                    validate 1.3.20 against git://github.com/angular/bower-angular.git#~1.3.0
bower angular#^1.3.0                      cached git://github.com/angular/bower-angular.git#1.5.0
bower angular#^1.3.0                    validate 1.5.0 against git://github.com/angular/bower-angular.git#^1.3.0
bower angular#>= 1.0.8                    cached git://github.com/angular/bower-angular.git#1.5.0
bower angular#>= 1.0.8                  validate 1.5.0 against git://github.com/angular/bower-angular.git#>= 1.0.8
bower angular#>=1.2.0                     cached git://github.com/angular/bower-angular.git#1.5.0
bower angular#>=1.2.0                   validate 1.5.0 against git://github.com/angular/bower-angular.git#>=1.2.0
bower                                  ECONFLICT Unable to find suitable version for angular

你能告诉我为什么会出现这个ECONFLICT错误吗?

EN

回答 1

Stack Overflow用户

发布于 2016-02-07 22:46:38

您的AngularJS版本存在冲突。您的许多依赖项都依赖于AngularJS,并且它们不能使用相同的AngularJS版本进行解析。

您应该尝试将此代码添加到文件bower.json

代码语言:javascript
复制
"resolutions": {
  "angular": "1.3.0"
}

1.3.0替换为您实际要在项目中使用的AngularJS版本。

更多信息可以在bower.json specification上找到。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35239888

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档