yarn 和 npm 常用命令对比
作用
NPM 命令
Yarn 命令
安装
npm install
yarn
安装某个包
npm install xxx –save
yarn add xxx
删除某个包
npm uninstall xxx –save
yarn remove xxx
开发模式下安装某个包
npm install xxx –save-dev
yarn add xxx –dev
更新...
阅读全文…