Wednesday 22 November 2017

How to resolve Bower dependency version conflicts?

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":
"project-x",
"private": true,
"dependencies": {

"bootstrap-sass": "~3.3.7",
"modernizr": "~2.8.3",
"jquery":
"~1.11.3"
},

"devDependencies": {},

"resolutions": {
"jquery": "~1.11.3"

}
}


Also you
can run bower install and when bower will ask for "suitable
version" (if interactive mode is on), prefix choice with !, so
bower will save your choice into bower.json file.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...