how to yarn add repository branch code example Example: add dev dependency yarn yarn add -D package //or yarn add --dev package