Npm vs Yarn

Npm vs Yarn

Ee938a042678a27c04ce01aef47b8e6f?s=128

FranckAbgrall

May 18, 2017
Tweet

Transcript

  1. 3.

    • 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. 4.
  3. 5.

    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"
  4. 6.

    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>
  5. 7.

    , an improvement over + Speed + Cache + Deterministic

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