I got a fail response that bower angular resolution Unsuitable resolution declared for angular: 1.4.8 bower ECONFLICT Unable to find suitable version for angular
And my bower.json is
{
"name": "someet-backend",
"version": "0.0.0",
"private": true,
"dependencies": {
"angular-bootstrap": "0.14.2",
"angular-material": "0.11.1",
"angular-route": "1.4.7",
"angular-local-storage": "0.2.2",
"ng-lodash": "0.2.3",
"ng-file-upload": "6.0.2",
"angular-bootstrap-datetimepicker": "latest",
"angular-messages": "1.4.7",
"ng-tags-input": "~3.0.0",
"angular-jquery": "~0.2.1",
"textAngular": "v1.3.0-pre15",
"bootstrap": "~3.3.5",
"jquery": "~2.1.4",
"angular": "~1.4.8",
"moment": "~2.10.6"
},
"resolutions": {
"angular": "1.4.8"
}
}
I have try to degrade angular as
"resolutions": {
"angular": "1.4.7"
}
,
"resolutions": {
"angular": "1.4.6"
}
,
"resolutions": {
"angular": "1.3.0"
}
then return similar response result
Upgrade angular-route, angular-messages to match angular version 1.4.8
Upgrade Dev_dependencies as well as resolutions
"devDependencies": {
"angular-mocks": "~1.7.8",
"angular-route": "~1.7.8"
},
"resolutions": {
"angular": "1.7.8"
}
Related
{
"name": "concur-frontend",
"version": "0.0.0",
"dependencies": {
"angular": "1.5.8",
"bootstrap": "3.3.7",
"angular-animate": "1.5.8",
"angular-cookies": "1.5.8",
"angular-resource": "1.5.8",
"angular-route": "1.5.8",
"angular-sanitize": "1.5.8",
"angular-touch": "1.5.8",
"angular-ui-router": "0.3.2",
"lodash": "3.0.0",
"restangular": "1.6.1",
"angular-bootstrap": "1.2.5",
"ui-bootstrap": "2.5.0",
"angular-spinner": "0.8.1",
"spin": "1.1.6",
"bootstrap-ui-datetime-picker": "2.3.1"
},
"devDependencies": {
"angular-mocks": "^1.4.0"
},
"appPath": "app",
"moduleName": "meetingApp",
"overrides": {
"bootstrap": {
"main": [
"less/bootstrap.less",
"dist/css/bootstrap.css",
"dist/js/bootstrap.js"
]
}
},
"resolutions": {
"angular-bootstrap": "~1.2.0"
}
}
The above is my bower.json file and i get the error in the console
bower restangular#1.6.1 ENOTFOUND Package restangular not found
I searched for the similar error and found few links saying the bower 1.8.x has similar errors but i do get the same in 1.7.9 as well.
Let me know if i am going wrong anywhere, i am searching for this since 4 days but still no-luck
Thanks in Adv.
I have a project which was using angular version 1.4. I installed angular material via bower and then subsequently received the following error:
Uncaught TypeError: angular.module(...).info is not a function
I read this was to do with the version of angular I'm using so I updated angular and then angular-animate to 1.6. However this didn't fix the problem. I tried running bower update but I still have the above error.
When I ran bower update I received the following warning...
Resort to using angular#~1.4.2 which resolved to angular#1.4.14
Code incompatibilities may occur.
this is the contents of my bower.json file:
{
"name": "node-template",
"version": "0.0.0",
"main": [
"./public/styles/*.css",
"./public/scripts/*.js"
],
"dependencies": {
"angular-animate": "1.6",
"angular-sanitize": "~1.4.2",
"angular-messages": "~1.4.2",
"bootstrap-sass": "~3.3.5",
"jquery": "~2.1.4",
"angular": "1.6",
"angular-ui-router": "~0.2.15",
"angular-bootstrap": "~2.5.0",
"angular-google-chart": "~0.1.0",
"velocity": "~1.4.2",
"animate.css": "~3.5.2",
"angular-file-saver": "~1.1.3",
"ng-file-upload": "~12.2.13",
"ng-img-crop": "ngImgCrop#~0.3.2",
"angularfire": "~2.3.0",
"angular-material": "~1.1.4"
},
"devDependencies": {
"angular-mocks": "~1.4.2"
},
"overrides": {},
"resolutions": {
"jquery": "~2.1.4",
"angular": "~1.4.2"
}
}
Is bower telling me I'm using version 1.4? I don't understand why it cannot resolve the version problems I'm encountering?
Edit:
here is my new bower.json after upgrading to angular 1.5:
{
"name": "node-template",
"version": "0.0.0",
"main": [
"./public/styles/*.css",
"./public/scripts/*.js"
],
"dependencies": {
"angular-animate": "1.4",
"angular-sanitize": "~1.4.2",
"angular-messages": "~1.4.2",
"bootstrap-sass": "~3.3.5",
"jquery": "~2.1.4",
"angular": "1.5",
"angular-ui-router": "~0.2.15",
"angular-bootstrap": "~2.5.0",
"angular-google-chart": "~0.1.0",
"velocity": "~1.4.2",
"animate.css": "~3.5.2",
"angular-file-saver": "~1.1.3",
"ng-file-upload": "~12.2.13",
"ng-img-crop": "ngImgCrop#~0.3.2",
"angularfire": "~2.3.0",
"angular-material": "~1.1.4"
},
"devDependencies": {
"angular-mocks": "~1.4.2"
},
"overrides": {},
"resolutions": {
"jquery": "~2.1.4",
"angular": "1.5"
}
}
You have Angular 1.4.14 installed. Looking at the bower.json for Angular Material the minimum version of AngularJS required for the package is 1.5 which is probably why you are having errors. Can you not update to AngularJS 1.5?
Failing that, I suggest you install an older version of Angular Material that is compatible with 1.4.x
The error I was seeing...
angular.module(...).info is not a function
...seems to arise when the version of angular-aria (required by angular-material) is newer than the version of angular. I managed to get my build working again by setting angular-aria to be the same version as angular.
I am getting the following message while running bower install command.
bower.json:
{
"name": "test-app",
"version": "1.1.6",
"dependencies": {
"jquery": "2.1.0",
"jquery-bridget": "*",
"angular": "1.3.15",
"json3": "~3.2.6",
"es5-shim": "~2.1.0",
"angular-resource": "1.3.15",
"angular-sanitize": "1.3.15",
"angular-animate": "1.3.15",
"angular-cookies": "1.3.15",
"angular-touch": "1.3.15",
"angular-moment": "~0.6.2",
"angular-loading-bar": "0.6.0",
"angular-masonry": "0.11.0",
"js-cookie": "2.1.3"
},
"devDependencies": {
"angular-mocks": "1.3.15",
"angular-scenario": "1.3.15"
}
}
Can anyone help me here to how to proceed ahead.
Thanks,
Santosh
Thats because the dependencies you are injecting requires different versions of angularJs. For resolving it, first find a suitable compatible version of angularJs. And then you can add resolutions to the object in your bower.json file and specify the component name & version to automatically resolve the conflict when running bower commands. Like this:
{
"name": "test-app",
"version": "1.1.6",
"dependencies": {
"jquery": "2.1.0",
"jquery-bridget": "*",
"angular": "1.3.15",
"json3": "~3.2.6",
"es5-shim": "~2.1.0",
"angular-resource": "1.3.15",
"angular-sanitize": "1.3.15",
"angular-animate": "1.3.15",
"angular-cookies": "1.3.15",
"angular-touch": "1.3.15",
"angular-moment": "~0.6.2",
"angular-loading-bar": "0.6.0",
"angular-masonry": "0.11.0",
"js-cookie": "2.1.3"
},
"devDependencies": {
"angular-mocks": "1.3.15",
"angular-scenario": "1.3.15"
},
"resolutions": {
"angular": "1.3.15"
}
}
Try to upgrade to a recent angular-moment version like ~0.10
You can explicitly tell bower to install specific version of a dependency using the resolutions attribute. Like this:
"dependencies": {
"jquery": "2.1.0",
"jquery-bridget": "*",
...
},
"resolutions": {
"angular": "1.4.8",
...
}
I am having trouble installing a datetime picker on angularjs using bower install.
I am using this library: https://github.com/Gillardo/bootstrap-ui-datetime-picker but for some reason it does not seem to be installed and the error says:
ECONFLICT Unable to find suitable version for angular
My bower.json looks as below:
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"angular": "1.2.16",
"json3": "~3.3.1",
"es5-shim": "~3.1.0",
"angular-resource": "1.2.16",
"angular-cookies": "1.2.16",
"angular-sanitize": "1.2.16",
"angular-animate": "1.2.16",
"angular-touch": "1.2.16",
"angular-route": "1.2.16",
"font-awesome": "4.3.0",
"angular-bootstrap": "0.12.0",
"oclazyload": "~0.5.2",
"angular-loading-bar": "~0.7.0",
"angular-ui-router": "~0.2.13",
"angular-toggle-switch": "~1.2.1",
"metisMenu": "~1.1.3",
"angular-chart.js": "~0.5.2",
"satellizer": "~0.13.1",
"angular-payments": "*",
"angular-file-upload": "~2.2.0",
"bootstrap-select": "~1.9.3",
"ngBootbox": "~0.1.3",
"angular-ui-tinymce": "~0.0.12"
},
"devDependencies": {
"angular-mocks": "1.2.16",
"angular-scenario": "1.2.16"
},
"resolutions": {
"angular": "^1.1.5",
"bootstrap": "~3.1.1",
"angular-sanitize": "1.2.16"
},
"appPath": "app"
}
It works on my local machine if I add this parameter when using bower install --force-latest ... but this is not working on my production where I use Heroku for deploying
I ran a bower install and have some sort of dependency conflict, everything works and the site loads fine with no errors but the bootstrap modals won't animate. animate is set to true. Any tips for debugging this would be appreciated.
{
"name": "myApp",
"version": "0.0.0",
"dependencies": {
"angular": "1.4.3",
"json3": "~3.2.6",
"es5-shim": "~2.1.0",
"jquery": "~1.11.0",
"bootstrap": "~3.0.3",
"angular-resource": "1.4.3",
"angular-cookies": "1.4.3",
"angular-sanitize": "1.4.3",
"angular-ui-router": "~0.2.15",
"ng-clip": "*",
"angular-scroll-glue": "~2.0.6",
"ng-timeago": "*",
"angular-bootstrap": "~0.13.2",
"ng-file-upload-shim": "~6.2.1",
"bootstrap-carousel-swipe": "*",
"jquery.maskedinput": "~1.4.1",
"ngAutocomplete": "~1.0.0"
},
"devDependencies": {
"angular-mocks": "1.4.3",
"angular-scenario": "1.4.3"
},
"resolutions": {
"angular": ">1.0.6"
}
}
Looks like this is only supported in Angular 1.4.5 +.