Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 573 Bytes

Yarn_vs_Npm.md

File metadata and controls

48 lines (31 loc) · 573 Bytes

Yarn Vs Npm Commands

Install Dependencies

yarn

npm install

Install a package and add to package.json

yarn add package

npm install package --save

Install a devDependency and add to package.json

yarn add package --dev

npm install package --save-dev

Remove a dependency from package.json

yarn remove package

npm uninstall package --save 

Upgrade a package to its latest version

yarn upgrade

npm update --save

Install a package globally

yarn global add package

npm install package -