Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not always triggered #8

Open
Tchekda opened this issue Jun 18, 2023 · 1 comment
Open

Not always triggered #8

Tchekda opened this issue Jun 18, 2023 · 1 comment

Comments

@Tchekda
Copy link

Tchekda commented Jun 18, 2023

In the following situations, install-peers is not called and yarn is removing the peer dependencies from node_modules/ :

  • When installing a new package with yarn add PACKAGE_NAME
  • When pulling an update from a git repository and running yarn or yarn install

It is really annoying and the only fix I found for now is to run rm -rf node_modules/ && yarn which clears everything and installs from scratch.

I am on NodeJS 18 with yarn v1.22

@gkostov
Copy link

gkostov commented Aug 9, 2023

A less annoying way to deal with this is to only remove and add install-peers again. That will trigger its postinstall script and will add the missing peerDeps. But it's still far from ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants