Skip to content

[Bug] Unable to switch from yarn 2 to yarn 1 #2970

@ghost

Description

I've uninstalled yarn 2 via sudo npm uninstall -g yarn. Running yarn -v returns bash: /usr/bin/yarn: No such file or directory.

So far, so good. Then I ran sudo npm install -g '[email protected]':

$ sudo npm install -g '[email protected]'
/usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js
+ [email protected]

but whenever I run yarn -v it gives me 2.4.1.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions