Skip to content

yarn

nodejs package manager

install packages

  • yarn # install packages if package.json is available
  • yarn add PACKAGE # install PACKAGE locally
  • yarn add -D DEV_PACKAGE # install DEV PACKAGE as development dependency
  • yarn global add PACKAGE # add PACKAGE globally

upgrade packages

  • yarn upgrade-interactive # upgrade local packages interactively
  • yarn global upgrade-interactive # update global packages interactively
  • yarn upgrade --latest # well, sometimes you actually need this. why not, right...?