yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

`Yarn install` does not install "peerDependencies" for project has them, while npm does. #9072

Closed Paper-Folding closed 6 days ago

Paper-Folding commented 6 days ago

I have a project with package.json having these dependencies:

  "devDependencies": {
    "prettier": "^3.3.2",
    "typescript": "^5.2.2",
    "vite": "^5.3.1"
  },
  "peerDependencies": {
    "lodash": "^4.17.21"
  }

After executing yarn install for the project, the peer dependency "lodash" is not installed.
How to resolve this issue to make yarn install peer dependencies?

Paper-Folding commented 6 days ago

Close as I posted issue in a wrong repository.