用 npm 安装纱线

npm install --global yarn

如果你之前没有安装过 npm,请查看网站文档以获取更多详细信息。 https://yarnpkg.com/en/docs/install