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

Option to delete modules and reinstall #48

Open
silverwind opened this issue Jul 24, 2020 · 1 comment
Open

Option to delete modules and reinstall #48

silverwind opened this issue Jul 24, 2020 · 1 comment

Comments

@silverwind
Copy link
Owner

silverwind commented Jul 24, 2020

After a dependency update, it's usually best to wipe node_modules and reinstall. I'm considering adding a command line switch to do just that for node_modules and whatever files yarn v2 uses, if present.

@silverwind silverwind changed the title Switch to delete node_modules / pnp files Option to delete node_modules / pnp files Jul 24, 2020
@silverwind silverwind mentioned this issue Jul 24, 2020
@silverwind
Copy link
Owner Author

silverwind commented Aug 4, 2020

Some notes:

  1. check for .yarnrc.yml and yarn.lock. if found, delete yarn.lock, .pnp.js, .yarn/cache and run yarn
  2. check for .yarnrc, yarn.lock. if found, delete yarn.lockm node_modules and run yarn.
  3. delete node_modules and package-lock.json and run npm i.

@silverwind silverwind changed the title Option to delete node_modules / pnp files Option to delete modules and reinstall Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant