node installed yarn

Yarn is dependent on Facebook recently released a package installation tools. Yarn is a new fast and secure reliable alternative to NPM dependency management tool

 

Quick Installation

// installed in the NPM in 
npm install -g yarn

 

MacOS

More convenient to install on a Mac, you can use the initialization script

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

Linux

Po Lord Himself machine is Ubuntu, the installation is relatively simple 

input the command

sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3

echo  "deb http://dl.yarnpkg.com/debian/ stable main"  | sudo  tee  /etc/apt/sources .list.d /yarn .list
 
sudo  apt-get update && sudo  apt-get install  yarn
 

Guess you like

Origin www.cnblogs.com/wanglijun/p/10993698.html