You’re probably here because your using either
yarn install or
npm install and your devDependencies are not installing.
By default, these install actions should install both your
The trick here is that both
npm respect the
NODE_ENV environment variable, and many times build environments we set the
production because many build tools (including webpack) produce optimized builds for production use.
production silently turns
npm install into
npm install --production which excludes devDependencies from the install process.
Did you know you can provide a value to the
yarn install --production=false
npm install --production=false
Either of these will force your install to fetch your devDependencies as well as your normal dependencies.