exclude package from yarn install code example Example: install dev dependency yarn yarn add nameOfPackage --dev