Save 37% off PRO during our Black Friday Sale! »

Npm vs Yarn

Npm vs Yarn

Ee938a042678a27c04ce01aef47b8e6f?s=128

FranckAbgrall

May 18, 2017
Tweet

Transcript

  1. Npm vs Yarn vs NantesJS

  2. Consultant @ Zenika Nantes Fullstack developer Franck Abgrall

  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
  4. None
  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"
  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>
  7. , an improvement over + Speed + Cache + Deterministic

    + Offline mode + Yarn why + Checksum + Emojis - Not completely stable
  8. Conclusion • Young • Huge and active community

  9. blog.zenika.com/npm-vs-yarn/ Découvrez le futur des gestionnaires de paquets js !

  10. https://github.com/kefranabg/NPM-VS-YARN

  11. Un feedback? http://bit.ly/2ql2qxz