The yarn’s official website

Yarn.bootcss.com/docs/instal…

Yarn has been installed in an updated version

Brew upgrade yarn command

Brew Update error message is displayed, as shown in the following figure

  • Brew reported 2 errors as shown below

Figure 1

Figure 2Error in Figure 2, SHA256 “digest”… I do not understand, see this article partners, who is clear, please dare to leave a message to share, thank you… ^_^)

Upgrade YARN based on the preceding two errors

  • The old version of YARN is 1.3. many. After several attempts as prompted, the modification succeeds as follows

(1) Use BREW to remove YARN

Brew uninstall –force yarn

(2) to check the yarn

Command 1: which yarn

Or command 2: yarn

(3) Prompts for implementing Figure 1:

Command: git – C/usr/local/Homebrew/Library/Taps/Homebrew/Homebrew – core fetch – unshallow

(4) Execute the following three commands in sequence:

Command 1: brew update

Command 2: brew install yarn

Command 3: yarn-version

The YARN upgrade succeeded. Procedure

If there is any wrong, welcome to correct, discuss, improve, learn one-stop service #