How do you switch between pnpm versions?

Viewed 1904

I'm currently working on an application that uses pnpm 6 but I have pnpm 7 installed. I couldn't find any documentation that shows me how to install and switch between versions. Thank you!

1 Answers

There may be a better way but I just uninstalled version 7 and installed version 6. I did this with yarn but you can do it with any method listed in the uninstall/install documentation. Just make sure you uninstall using the method you originally used to install it (npm, yarn, brew, etc.).

This is what I did:

yarn global remove pnpm
yarn global add pnpm@6.32.1 (installed specific latest pnpm version)

Currently, it seems there is no solution similar to nvm. Reference

Related