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

mongosh install properly

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20