Adicione o fio de dependência de dev
yarn add -D package
//or
yarn add --dev package
Sleep Overflow
yarn add -D package
//or
yarn add --dev package
yarn add nameOfPackage --dev