yarn
Notes
It's better than npm!
Using it
npm equivalents
npm | yarn |
---|---|
npm init | yarn init |
npm install | yarn |
npm install gulp --save | yarn add gulp |
npm install gulp --save-dev --save-exact | yarn add gulp --dev --exact |
npm install -g gulp | yarn global add gulp |
npm update | yarn upgrade |
./node_modules/.bin/gulp | yarn run gulp |
yarn install
--no-lockfile
--pure-lockfile
--frozen-lockfile
--silent
--offline
--update-checksums
--check-files
--flat
--force
--ignore-scripts
--modules-folder <path>
--production[=true|false]
These options are available for yarn install
.
yarn add
--dev
--peer
--optional
--exact
--tilde
These options are available for yarn add
.
Links
Last updated on January 18, 2023