Skip to content

Instantly share code, notes, and snippets.

@silversonicaxel
Last active August 27, 2019 11:18
Show Gist options
  • Save silversonicaxel/2b2fc714ec5d04327a8df8206d34ea3f to your computer and use it in GitHub Desktop.
Save silversonicaxel/2b2fc714ec5d04327a8df8206d34ea3f to your computer and use it in GitHub Desktop.
YARN #yarn
// upgrade yarn version
brew upgrade yarn
// create a package.json file asking for
// - name (node)
// - version (1.0.0)
// - description ()
// - author ()
yarn init
// version of yarn installed
yarn --version
// look for package.json and install modules
yarn install
//install module and save it to the package.json dependencies
yarn add <module>
//install module globally
yarn global add <module>
//install module and save it to the package.json devDependencies
yarn add <module> --dev
yarn add <module> -D
//remove module from dependencies
yarn remove <module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment