0
在我在我的角度应用程序的根bower.json,有:版本错误的角度依赖性
"dependencies": {
"angular": "^1.4.0",
"angular-animate": "^1.4.0",
我然后删除该文件夹“bower_components”的全部内容,这是所有凉亭东西将被下载。
我然后运行
bower install
我可以看到:
bower angular-animate#^1.4.1 cached https://github.com/angular/bower-angular-animate.git#1.5.9
bower angular-animate#^1.4.1 validate 1.5.9 against https://github.com/angular/bower-angular-animate.git#^1.4.1
bower angular#^1.4.0 cached https://github.com/angular/bower-angular.git#1.5.9
bower angular#^1.4.0 validate 1.5.9 against https://github.com/angular/bower-angular.git#^1.4.0
当我看downlaoded文件,我看到:
在angular.js:
* @license AngularJS v1.4.14
In angular-animate.js
* @license AngularJS v1.5.9
现在,angular-animate.js给toFixed函数提供了一个奇怪的错误。我听说有了这两个库在相同的版本会使错误消失。 这就是为什么Imtrying有他们在同一版本。但直到试图添加不同的版本,然后才是我在bower.json中指定的版本。为什么?
您在使用'^ '在版本号告诉凉亭它可以采取比提供的版本更高的版本。 – GillesC