Migrating from npm to yarn

 

npm yarn
npm install yarn install
npm install [package] --save yarn add [package]
npm install [package] --save-dev yarn add [package] --dev
npm uninstall [package] yarn remove [package]
npm install [package] --global yarn global add [package]

References
https://yarnpkg.com/en/docs/migrating-from-npm