Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Npm vs Yarn

Npm vs Yarn

FranckAbgrall

May 18, 2017
Tweet

More Decks by FranckAbgrall

Other Decks in Programming

Transcript

  1. • Created in 2009 • Opensource • Most used javascript

    package manager • Created in 2016 • Opensource • Use the npm registry • Created to solve problem their authors faced themselves
  2. Semantic versioning [major] . [minor] . [patch] Incompatible changes .

    Non breaking changes . Bug fixes Caret ranges ( ^ ) ^6.7.0 == between 6.7.0 and 7.0.0 (7.0.0 excluded) "node": "^6.7.0"
  3. Cheat sheet npm install yarn (or yarn install) npm install

    <package> --save yarn add <package> npm install <package> --save-dev yarn add <package> --dev npm update --save yarn upgrade npm install <package> -g yarn global add <package> npm uninstall <package> --save yarn remove <package>
  4. , an improvement over + Speed + Cache + Deterministic

    + Offline mode + Yarn why + Checksum + Emojis - Not completely stable