yarn
JavaScript and Node.js package manager alternative. More information: https://yarnpkg.com.
-
Install a module globally:
yarn global add {{module_name}} -
Install all dependencies referenced in the
package.jsonfile (theinstallis optional):
yarn install -
Install a module and save it as a dependency to the
package.jsonfile (add--devto save as a dev dependency):
yarn add {{module_name}}@{{version}} -
Uninstall a module and remove it from the
package.jsonfile:
yarn remove {{module_name}} -
Interactively create a
package.jsonfile:
yarn init -
Identify whether a module is a dependency and list other modules that depend upon it:
yarn why {{module_name}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.