installing yarn package as dependency code example Example: install dev dependency yarn yarn add nameOfPackage --dev