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
// for specific versions
yarn add [email protected]
yarn set version <version>