Command Line Tools
Yarn

yarn

Notes

It's better than npm!

Using it

npm equivalents

npmyarn
npm inityarn init
npm installyarn
npm install gulp --saveyarn add gulp
npm install gulp --save-dev --save-exactyarn add gulp --dev --exact
npm install -g gulpyarn global add gulp
npm updateyarn upgrade
./node_modules/.bin/gulpyarn 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