snippetbashTip
yarn — JavaScript and Node.js package manager alternative. More information: <https://yarnpkg.com/cli>.
Viewed 0 times
commandnodeyarnandjavascriptclipackagemanager
Problem
How to use the
yarn command: JavaScript and Node.js package manager alternative. More information: <https://yarnpkg.com/cli>.Solution
yarn — JavaScript and Node.js package manager alternative. More information: <https://yarnpkg.com/cli>.Install a module globally:
yarn global add {{module_name}}Install all dependencies referenced in the
package.json file (the install is optional):yarn installInstall 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}}Uninstall a module and remove it from the
package.json file:yarn remove {{module_name}}Interactively create a
package.json file:yarn initIdentify whether a module is a dependency and list other modules that depend upon it:
yarn why {{module_name}}Code Snippets
Install a module globally
yarn global add {{module_name}}Install all dependencies referenced in the `package.json` file (the `install` is optional)
yarn installInstall 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}}Uninstall a module and remove it from the `package.json` file
yarn remove {{module_name}}Interactively create a `package.json` file
yarn initContext
tldr-pages: common/yarn
Revisions (0)
No revisions yet.