Open a Glitch project, and paste the following into the terminal. When it's done press the reconnect button.
rm -rf /app/.yarn & touch .bash_profile && curl -o- -L https://yarnpkg.com/install.sh | bash && exit-
Open a project or create a new one.
-
On the bottom left, click Tools and then on Terminal.
-
Make sure there's no
.yarnfile left over from previous attemps of setting up yarn.rm -rf /app/.yarn
-
Create a
.bash_profilefile.touch .bash_profile
-
Download and run the official installation script.
curl -o- -L https://yarnpkg.com/install.sh | bash -
Reload the terminal:
-
Type
exitand hit Enter. -
Press the reconnect button.
-
-
Confirm yarn is installed.
yarn --version