Installation of Yarn
The classic version of address: classic.yarnpkg.com/lang/en/
You can install Yarn using NPM. The node. js version must be the following
Node: ^ 4.8.0 | | ^ 5.7.0 | | ^ 6.2.2 | | > = 8.0.0
The command is as follows:
npm install --global yarn
Copy the code
Check the installation
yarn --version
Copy the code
Yarn Basic commands
Yarn add Package name yarn add -- Dev package name yarn Remove Package name yarn Upgrade package name @ Version number yarn installCopy the code