NPM and Yarn

Software Contributor Documentation Table of Contents

npm yarn

NPM stands for Node Package Manager.

Yarn is a new JavaScript package manager built by Facebook, Google, Exponent and Tilde.

To install yarn: npm i -g yarn

npm and yarn frequently used commands:

The examples below use a fictitious library named, taco.

npm   yarn
npm install   yarn
npm install taco –save   yarn add taco
npm uninstall taco –save   yarn remove taco
npm install taco taco –save-dev   yarn add taco –dev
npm update –save   yarn upgrade
npm install taco –global   yarn global add taco
npm run test   yarn run test
-   yarn why taco
-   yarn upgrade-interactive
     

Top of page