Bower Error: Unable To Find Suitable Version For Angular
I'm using bower in Visual Studio 2012 and I could migrate most JS/CSS libraries from NUGET to Bower but there's a few I cannot update, getting the same error on all. I'm new to bow
Solution 1:
You should provide version with each command :-
UPDATE with compatible version
bower install angular-bootstrap#0.1.0 --save
bower install angularAMD#0.0.1 --save
..etc
Solution 2:
After some more research and trying I found out a solution and is simple. Instead of running bower install library -save
I did added the latest versions of the libraries directly to my bower.json and added the resolutions as squiroid said on his answer as follow
{"name":"Web","version":"0.0.0","ignore":["**/.*","node_modules","bower_components","test","tests"],"dependencies":{"bootstrap":"~3.3.2","jqueryui":"~1.11.2","requirejs":"~2.1.15","fontawesome":"~4.3.0","oclazyload":"~0.5.2","angular":"~1.3.11","angular-route":"~1.3.11","angular-cookies":"~1.3.11","angular-bootstrap":"~0.12.0","angular-local-storage":"~0.1.5","angular-loading-bar":"~0.6.0","angular-smart-table":"~1.4.9","angular-translate":"~2.5.2","angular-translate-loader-static-files":"~2.5.2","angular-translate-storage-cookie":"~2.5.2","angular-translate-storage-local":"~2.5.2","angularjs-toaster":"~0.4.10","angularAMD":"~0.2.1"},"resolutions":{"angular":"~1.3.x","angular-cookies":"~1.3.x"}}
Then you just run bower install
and they will be added because are missing.
Solution 3:
I got the same problem but when I run bower update
. It did the trick for me.
Post a Comment for "Bower Error: Unable To Find Suitable Version For Angular"