Skip to content

Instantly share code, notes, and snippets.

@schuchard
Last active June 29, 2018 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schuchard/6e16fde60015b141d09d0f44531a6cdd to your computer and use it in GitHub Desktop.
Save schuchard/6e16fde60015b141d09d0f44531a6cdd to your computer and use it in GitHub Desktop.
yarn vs npm commands

yarn vs npm

# install
yarn === npm install

# add package to dependency
yarn add PKG === npm install PKG

# add package to devDependency
yarn add -D PKG === npm install -D PKG

# run package.json script
yarn CMD === npm run CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment