update yarn npm code example Example 1: linux install yarn curl -o- -L https://yarnpkg.com/install.sh | bash Example 2: install yarn brew install yarn