# Yarn

# 安装

npm install -g yarn

# 版本查询

yarn -v

# 初始化项目

yarn init

# 安装项目的全部依赖

yarn
# OR
yarn install

# 添加依赖包

yarn add [package]
yarn add [package]@[version]
yarn add [package]@[tag]

# 将依赖项添加到不同依赖项类别中

yarn add [package] --dev
yarn add [package] --peer
yarn add [package] --optional

# 升级依赖包

yarn upgrade [package]
yarn upgrade [package]@[version]
yarn upgrade [package]@[tag]

# 移除依赖包

yarn remove [package]
上次更新: 2021/1/24 下午9:54:10