yarn | 内容 | npm |
yarn / yarn install | 批量安装依赖 | npm install |
yarn add xxx | 安装指定包到指定位置 | npm install xxx —save |
yarn remove xxx | 卸载指定包 | npm uninstall xxx —save |
yarn add xxx —dev | npm install xxx —save-dev | |
yarn upgrade | 升级全部包 | npm update |
yarn global add xxx | 全局安装指定包 | npm install xxx -g |