yarn add package save dev code example Example 1: yarn save dev yarn add <package...> [--dev/-D] Example 2: yarn add to dev yarn add --dev <PACKAGE_NAME>