Replies: 2 comments 1 reply
-
@brantac What does Is something adding the |
Beta Was this translation helpful? Give feedback.
-
I think that I shouldn't have removed the .yarn directory. I installed yarn again using the script shown in the docs. Now I understand that to be able to use a version newer than 1.x, I just need to run |
Beta Was this translation helpful? Give feedback.
-
I read the official yarn website, telling how to install, but I was not able to make it work.
To begin with, I wanted to make a fresh installation of yarn, so I uninstalled the version 1.x by doing
rm -rfv ~/.yarn
, because I installed it using the script that downloads that tarball. And then I followed the instructions for installing the Berry version, but nothing happens.My Node version is 16.3.1. I ran
corepack enable
, and then I went to a project and ranyarn init -2
, and the result isbash: /home/<username>/.yarn/bin/yarn: No such file or directory
, because I think yarn is trying to run yarn using $PATH, but I deleted the files.I think I'm not understanding how the "newest" yarn version works. Could someone try to explain for a newbie?
Beta Was this translation helpful? Give feedback.
All reactions