Skip to content

How does pnpm override the version of a sub-dependencies? #4604

Answered by zkochan
ckvv asked this question in Q&A
Discussion options

You must be logged in to vote

Using overrides. For instance:

package.json:

{
  "pnpm": {
    "overrides": {
      "foo": "^1.0.0",
      "quux": "npm:@myorg/quux@^1.0.0",
      "bar@^2.1.0": "3.0.0",
      "qar@1>zoo": "2"
    }
  }
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aolchik
Comment options

@aolchik
Comment options

@zkochan
Comment options

Answer selected by ckvv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants