NodeJS Buildpack on App Platform
complete
Chris Short
This article recommends using the flag --production=false to install devDependencies, however this flag is deprecated and gives a warning message in the DO deploy logs. The only way I've found how to do this that isn't deprecated is by doing an npm install --include=dev
John Mulhausen
complete
Hi Chris,
We've added documentation that we think should clear this up. Look on the page now for details about what to do "if you are using an older NodeJS version prior to 7.7.x"
https://docs.digitalocean.com/products/app-platform/reference/buildpacks/nodejs/
Chris Short
It would be nice to be able to pass in flags in to the install command for Digital Ocean App Platform, or even a custom install command. What I ended up doing in my build script was npm ci --include=dev && myscripts
But going this route means I do an install once with only production deps (default in the DO build), and then an additional time when I need to install my dev deps for the build itself.