Problem Installing Yarn

nodejs
known-issue
yarn

#1

We have had several reports of yarn failing to install on CircleCI this morning. The issue looks like this:

curl -o- -L https://yarnpkg.com/install.sh | bash  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100    94  100    94    0     0    162      0 --:--:-- --:--:-- --:--:--   162

100  3549  100  3549    0     0   4916      0 --:--:-- --:--:-- --:--:--  4916

curl -o- -L https://yarnpkg.com/install.sh | bash returned exit code 1

Action failed: curl -o- -L https://yarnpkg.com/install.sh | bash

It appears that the yarn team made a change to the color codes which is causing the script to fail.

This is a known issue and has already been reported to the yarn team.

Workaround

Please use the following command to install yarn until this is resolved upstream

dependencies:
  pre:
    - curl -o- -L https://yarnpkg.com/install.sh | TERM=xterm bash

#2