简体   繁体   中英

Why doesn't PNPM install the latest version of nested dependencies

I have a dependency antd@4.20.6 in my project, it depends on rc-trigger . The version is defined as follows

"rc-trigger": "^5.2.10",

The latest version of rc-trigger is already "5.3.1".

Why is rc-trigger@5.2.10 still installed after I upgrade from antd@4.20.6 to antd@4.20.7 ?

I know that the overrides field can be used to force the latest version to be installed.

In your package.json try this:

{
  "pnpm": {
    "packageExtensions": {
      "antd": {
        "dependencies": {
          "rc-trigger": "^5.3.1"
        }
     },
  }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM