install dev dependency yarn

Shell
yarn add nameOfPackage --dev
Source

Also in Shell: