Simple cheatsheet of equivalent NPM & Yarn CLI commands
NPM | Yarn |
---|---|
npm install | yarn install |
npm install --no-package-lock | yarn install --no-lockfile |
npm install [package] --save | yarn add [package] |
npm install [package] --save-dev | yarn add [package] --dev |