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

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm