Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Revert from pnpm to npm

I just realized I won’t be able to use pnpm in a project, due to compatibility issues with other tools. Is there a way to cleanly switch back to npm, which is my default package manager?
What would be your approach? I’m trying to avoid reverting back to a previous push.

Thank you!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This should be pretty easy:

  • Delete node_modules
  • Delete pnpm_lock.yaml (this will be replaced by package-lock.json)
  • Replace all pnpm calls to npm in package.json

Now you can run npm install.
Tadaa, welcome back to npm.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading