Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I downgrade from Yarn2 to Yarn1?

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 [email protected] but this failed with an unknown version error message.

like image 384
BillSaysThis Avatar asked Oct 24 '25 15:10

BillSaysThis


2 Answers

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

like image 68
BillSaysThis Avatar answered Oct 27 '25 00:10

BillSaysThis


I had to delete all yarn related files in my home directory (windows) which was generated when I upgraded to yarn3 before running yarn set version 1.22.19

like image 27
Cheryl Murphy Avatar answered Oct 27 '25 01:10

Cheryl Murphy