我刚用Bower安装了angular-pdf
,在安装过程中,它问我
Unable to find a suitable version for angular, please choose one:
1) angular#>=1 <1.3.0 which resolved to 1.2.28 and is required by angular-bootstrap#0.12.0
2) angular#1.3.15 which resolved to 1.3.15 and is required by angular-cookies#1.3.15, angular-pdf#0.4.0
3) angular#>= 1.0.8 which resolved to 1.4.1 and is required by ui-router#0.2.13Prefix the choice with ! to persist it to bower.json
考虑到最好是与最古老的版本,以大多数兼容性,我去了3。
然而,这似乎造成了一些问题。首先,它似乎重新安装角。
当我现在运行我的网站时
TypeError: $browser.addPollFn is not a function
at Object.<anonymous> (angular-cookies.js:60)
at Object.invoke (angular.js:4443)
at Object.enforcedReturnValue [as $get] (angular.js:4296)
at Object.invoke (angular.js:4443)
at angular.js:4261
at getService (angular.js:4402)
at Object.invoke (angular.js:4434)
at Object.enforcedReturnValue [as $get] (angular.js:4296)
at Object.invoke (angular.js:4443)
at angular.js:4261
有没有办法让我恢复到运行Bower安装之前的状态?
谢谢!
发布于 2015-06-19 17:08:40
在您的bower.json
中,您将有提到您所使用的角度分辨率的部分。
就像这样:
"resolutions": {
"angular": ">= 1.0.8"
}
只需删除此部分,在devDependencies
中将“角”版本设置为1.3.15
,最后在终端中运行bower install
,我认为1.3.15版本的bower install
将生效。
https://stackoverflow.com/questions/30949080
复制