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
yarn add --dev package
Example 3: install react dependencies
npm install node-sass --save
npm install react-router-dom
npm install @material-ui/core
npm install @material-ui/icons
npm install --save @fortawesome/fontawesome-free
npm install axios
npm install aos --save
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]