Tips-to-use-yarn yarn的简单用法

First, make sure you have node installed on your computer.
首先,确保你的电脑已经安装了node环境

Install yarn 安装yarn

Run npm install yarn -g to install yarn globally. Run yarn global bin to get global installation path. Copy the path and set your computer's environment variables.
运行 npm install yarn -g 全局安装yarn。运行 yarn global bin 获取全局安装路径。复制路径并将其设置在你电脑的环境变量中。

At the same time, you can also use the installation package to install. If you install yarn this way, you don't need to set the environment variable.
与此同时,你也可以使用安装包的方式安装。如果你是通过这种方式安装,那么你不需要设置环境变量。