npm overrides and yarn resolutions to resolve packages
To force a package to be used, we can use npm overrides
"overrides": {
"foo": "1.0.0"
}
or if you're using yarn use
"resolutions": {
"package-a": "2.0.0",
"package-b": "5.0.0",
"package-c": "1.5.2"
}
Both are not compatible with each other. Yarn will complaint if you put "overrides" in package.json
Comments