How do I downgrade from Yarn2 to Yarn1?

Viewed 1260

I'm using macOS and after installing Yarn2 several important tools no longer function. I've logged issues with them but in the meantime I need to get back to Yarn Classic. brew uninstall yarn and then tried brew install yarn@1.22.5 but this failed with an unknown version error message.

1 Answers

Trick is to check for a ~/.yarnrc.yml file and if present remove any line for the yarnPath variable.

Related