Closed iasandcb closed 10 years ago
I can't seem to replicate this problem after upgrading my bower to 1.3.9 with a fresh angularAMD
clone. I tried both:
bower install
and
npm install
grunt setup
Both worked ok.
The "Unable to find suitable version for angular from grunt" error from bower are often transient. Can you try again?
Now it seems ok with resolutions. By the way,
npm WARN package.json grunt-templater@0.0.4 'repositories' (plural) Not supported. Please pick one as the 'repository' field
came up in npm install .
You mean ok without resolitions? If so, please close this issue.
As for "'repositories' (plural) Not supported" error, that is caused by grunt-templater@0.0.4
so out of my control.
Thanks for your attention.
I am getting angular-animate: Unable to find suitable version for angular-animate error. Can some one tell me what is wrong.
cat bower.json { "name": "angular-animate", "version": "1.2.25", "main": "./angular-animate.js", "dependencies": { "angular": "1.2.25" } }
when I run grunt I get
{ [angular-animate: Unable to find suitable version for angular-animate] code: 'ECONFLICT', name: 'angular-animate', picks: [ { endpoint: [Object], canonicalDir: '/var/root/.cache/bower/packages/1e5d36753a7672512aa68fc8cdf5a6ce/1.2.22', pkgMeta: [Object], dependencies: [Object], nrDependants: 0, dependants: [] }, { endpoint: [Object], canonicalDir: '/Users/xxxxx/strongloop/loopback-example-access-control-master/server/bower_components/angular-animate', pkgMeta: [Object], dependencies: [Object], nrDependants: 1, dependants: [Object] } ] }
The current bower.json results in the error with bower 1.3.9. Adding "resolutions" to bower.json like
{ "name": "angularAMD", "version": "0.2.1", "dependencies": { "angular": "1.2.21", "requirejs": "~2.1.9" }, "resolutions": { "angular" : "1.2.21" }, "devDependencies": { "angular-route": "1.2.21", "angular-animate": "1.2.21", "angular-mocks": "1.2.21", "angular-ui-bootstrap-bower": "~0.6.0", "requirejs-plugins": "~1.0.2", "google-code-prettify": "~1.0.1" } }
resolves this issue.