npm装包太慢了,那就用yarn把
首先全局安装
$ npm i yarn -g
yarn和npm命令对比
npm | yarn |
---|---|
npm install | yarn install |
npm install react --save | yarn add react |
npm uninstall react --save | yarn remove react |
npm install react --save-dev | yarn add react --dev |
npm update --save | yarn upgrade |
npm run dev | yarn run dev |
网友评论