Berry: [Bug]: Installing Yarn 2

Created on 5 Feb 2020  路  6Comments  路  Source: yarnpkg/berry

Describe the bug
Even after running npm install -g yarn@berry it still shows as version 1.21.1

I also tried running yarn set version but no luck.

Environment if relevant (please complete the following information):

  • OS: [macOS Catalina 10.15.2]
  • Node version [v12.14.1]
  • Yarn version [1.21.1]
bug

All 6 comments

I had the same issue before, please ensure you have not installed before with brew. If is that the case run

brew uninstall yarn

Then try again installing via npm, it did works for me.

yarn set version berry also doesn't work yet in yarn v1.21.x since it is an unreleased alias. You should be using yarn policies set-version berry

@juanpicado @DRoet, no luck even after installing from npm.

Screen Shot 2020-05-17 at 3 34 00 PM

@juanpicado @DRoet after trying multiple times, I was able to get the right version of 1.22.4

Much appreciated.

What actually solve this ? 馃

I did which yarn then it showed the path then I removed the path and run brew install yarn which worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mike-Dax picture Mike-Dax  路  3Comments

larixer picture larixer  路  4Comments

janicduplessis picture janicduplessis  路  4Comments

juanpicado picture juanpicado  路  4Comments

danreg picture danreg  路  3Comments