yarn install peer dependencies code example

Example 1: Install Peer Dependencies

npm i install-peers -D

Example 2: add dev dependency yarn

yarn add -D package
//or
yarn add --dev package

Example 3: install react dependencies

//Sass framework
npm install node-sass --save

//Router, Route, Link
npm install react-router-dom

//Material UI
npm install @material-ui/core
npm install @material-ui/icons

//Font awesome icons 
npm install --save @fortawesome/fontawesome-free

//APIS
npm install axios

//scroll animation
npm install aos --save

//react hook form
npm install react-hook-form

Example 4: install dev dependency yarn

yarn add nameOfPackage --dev

Example 5: yarn add --save-exact

yarn add <package...> [--exact/-E]