yarn install : installs from yarn.lock or package.json

  • yarn [global] [--dev] add : automatically adds to package.json as dependency, as dev dependency with
  • yarn [global] ls : list packages
  • yarn upgrade : upgrade to the latest versions
  • yarn why : show dependency tree for a package (why was it installed)

npm to yarn:

  • npm install => yarn
  • npm install --save => yarn add
  • npm install --save-dev  => yarn add --dev
  • npm uninstall --save => yarn remove taco
  • npm update --save => yarn upgrade
  • npm install --global => yarn global add
  • npm outdated => yarn outdated
  • npm cache clean => yarn cache clean
Go to index of articles.

Share on