yarn install react package json code example Example: install dev dependency yarn yarn add nameOfPackage --dev