yarn

yarn

TLDR

Install a module globally

>_ yarn global add [module_name]
copy

Install all dependencies referenced in the package.json file (the install is optional)

>_ yarn install
copy

Install a module and save it as a dependency to the package.json file (add --dev to save as a dev dependency)

>_ yarn add [module_name]@[version]
copy

Uninstall a module and remove it from the package.json file

>_ yarn remove [module_name]
copy

Interactively create a package.json file

>_ yarn init
copy

Identify whether a module is a dependency and list other modules that depend upon it

>_ yarn why [module_name]
copy

Copied to clipboard
free 100$ digital ocean credit