yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.4k stars 2.73k forks source link

Wrong version being installed #9057

Closed Gambitboy closed 4 months ago

Gambitboy commented 4 months ago

Yarn installed via NPM or Homebrew installs v2 instead of v1

Running the following commands:

npm install -g yarn or brew install yarn

When I run: yarn --version

I get version 3.6.4

Gambitboy commented 4 months ago

I fixed it by running the following command:

rm -rf ~/.yarn*

Suggested by someone on stackoverflow. Might be useful here. https://stackoverflow.com/a/70978316/11701253