这些是我在文件中的依赖项bower.json.他们中的大多数都与AngularJS有关.
"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"
}
Run Code Online (Sandbox Code Playgroud)
当我运行时bower install,它给我输出错误ECONFLICT Unable to find suitable version for angular:
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
Run Code Online (Sandbox Code Playgroud)
你能告诉我为什么它给我这个ECONFLICT错误吗?
您的AngularJS版本存在冲突.您的许多依赖项都依赖于AngularJS,并且使用相同的AngularJS版本无法解析它们.
你应该尝试在你的文件中添加它bower.json:
"resolutions": {
"angular": "1.3.0"
}
Run Code Online (Sandbox Code Playgroud)
替换1.3.0为您实际想要在项目中使用的AngularJS版本.
更多信息可以在bower.json规范中找到.
| 归档时间: |
|
| 查看次数: |
6906 次 |
| 最近记录: |