bower install ECONFLICT unable to find suitable version for angular-bootstrap - angularjs

when I run command 'bower install angular-ui-select' it gives me the error ECONFLICT unable to find suitable version for angular-bootstrap. my bower.json is as follows. my bower.json is as follows.
{
"name": "Analytics Tool",
"version": "1.0.0",
"authors": [
"Janith Widarshana"
],
"license": "IOS",
"homepage": "",
"ignore": [
"**/.*",
"node_modules",
"public/libs"
],
"dependencies": {
"jquery": "~2.1.x",
"jquery-ui": "~1.11.x",
"jquery-custom-scrollbar": "0.5.x",
"bootstrap": "~3.3.*",
"angular": "~1.4.*",
"angular-resource": "~1.4.*",
"angular-animate": "~1.4.*",
"angular-mocks": "~1.4.*",
"angular-bootstrap": "~2.1.*",
"angular-ui-utils": "~3.0.*",
"angular-ui-router": "~0.2.*",
"fontawesome": "~4.5.*",
"ngInfiniteScroll": "~1.2.*",
"angular-sanitize": "~1.4.*",
"underscore": "~1.8.3",
"angular-local-storage": "~0.2.x",
"flexslider": "~2.6.x",
"angular-google-maps": "^2.3.2",
"angular-file-upload": "^2.2.0",
"ng-table": "^0.8.3",
"iCheck": "icheck#^1.0.2",
"bootstrap3-dialog": "bootstrap-dialog#^1.35.1",
"angular-moment": "^0.10.3",
"angular-underscore-module": "^1.0.3",
"isteven-angular-multiselect": "~4.0.0",
"angular-ui-grid": "^3.1.1",
"crypto-js": "^3.1.6",
"angular-bootstrap-colorpicker": "^3.0.25"
}
}

Related

bower install - fails in Jenkins - with ENOTFOUND error

{
"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.

Unable to find a suitable version for angular while running bower install command

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",
...
}

Getting .Fatal error: grunt.util._.contains is not a function while saving code after grunt debug

I have two version of grunt one global and one local.
grunt-cli v1.2.0
grunt v1.0.1
I want to uninstall v1.0.1.
When running grunt debug command it running successfully but while saving code am getting this fatal error:grunt.util._.contains is not a function.
bower.json
{
"name": "__",
"version": "__",
"devDependencies": {
"angular": "^1.5.5",
"angular-ui-router": "^0.2.18",
"angular-mocks": "^1.5.5",
"angular-bootstrap": "^1.3.2",
"ngstorage": "^0.3.10",
"bootstrap": "^3.3.6",
"angular-resource": "^1.2.28",
"ng-file-upload-shim": "^12.0.4",
"ng-file-upload": "^12.0.4"
},
"dependencies": {
"angularjs-slider": "^5.4.1"
}
}
package.json
{
"author": "....",
"name": "....",
"version": "1.0.0",
"homepage": ".....",
"licenses": {
"type": "MIT",
"url": "...."
},
"bugs": "....",
"repository": {
"type": "git",
"url": "..."
},
"dependencies": {},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-bump": "0.0.6",
"grunt-coffeelint": "~0.0.10",
"grunt-contrib-clean": "^0.4.1",
"grunt-contrib-coffee": "^0.7.0",
"grunt-contrib-concat": "^0.3.0",
"grunt-contrib-copy": "^0.4.1",
"grunt-contrib-jshint": "^0.4.3",
"grunt-contrib-less": "~0.11.0",
"grunt-contrib-uglify": "^0.2.7",
"grunt-contrib-watch": "^0.4.4",
"grunt-conventional-changelog": "^0.1.2",
"grunt-html2js": "^0.1.9",
"grunt-karma": "^0.8.2",
"grunt-ng-annotate": "^0.8.0",
"karma": "^0.12.9",
"karma-coffee-preprocessor": "^0.2.1",
"karma-firefox-launcher": "^0.1.3",
"karma-jasmine": "^0.1.5"
}
}
It is due to incompatible grunt version, so I followed the below commands:
I Uninstalled Grunt:
>npm uninstall -g grunt
I Installed Grunt-cli:
>npm install -g grunt-cli
Then i checked the version:
>grunt --version
grunt-cli v1.2.0
grunt v1.0.1
I got the above response, but i needed grunt v0.4.5
Then i installed the needed grunt version:
npm install grunt#0.4.5 --save-dev
Now I don't get the above specified error.

Datetime picker cannot be installed on angularjs 1.2.16

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

Bower/grunt keeps removing one of my packages

I got several packages loaded. But each time I run grunt serve or grunt it removes one from my index.html file
<script src="bower_components/angular-csv-import/dist/angular-csv-import.js"></script>
My bower.json file:
{
"name": "client",
"version": "0.0.0",
"dependencies": {
"angular": "^1.2.27",
"json3": "^3.3.0",
"es5-shim": "^4.0.0",
"bootstrap-sass-official": "^3.1.1",
"angular-animate": "^1.2.27",
"angular-cookies": "^1.2.27",
"angular-messages": "^1.2.27",
"angular-resource": "^1.2.27",
"angular-sanitize": "^1.2.27",
"angular-touch": "^1.2.27",
"underscore": "~1.7.0",
"angular-csv-import": "~0.0.14",
"angular-ui-router": "~0.2.13",
"angular-bootstrap": "~0.12.0",
"font-awesome": "~4.2.0",
"angular-rangeslider": "~0.0.11",
"highcharts-ng": "~0.0.7",
"highcharts-release": "~4.0.4",
"ng-csv": "~0.3.1"
},
"devDependencies": {
"angular-mocks": "~1.2.27",
"angular-scenario": "~1.2.27"
},
"appPath": "app"
}
It's also in my karma.conf.js file.
Why is it removing angular-csv-import from my index.html file?

Resources