安装及初始化安装npm install --global yarn npm install yarn -g配置镜像源yarn config set registry https://registry.npm.taobao.org yarn config get registry版本查看yarn --version yarn -v初始化一个新项目并创建package.json文件yarn init依赖包安装己有依赖yarn yarn install添加依赖包yarn add [package] yarn add [package]@[version] yarn global add [package]升级依赖包yarn upgrade [package] yarn upgrade [package]@[version]删除依赖包yarn remove [package]已经安装的列表yarn list运行命令yarn run [command]配置信息查看yarn config list设置yarn config set yarn config set registry https:
昼夜思想