The idea of the buildpack is to install devDependencies even if the NODE_ENV is set to production simply avoiding the flag --production on npm install.
Unfortunately this doesn't work since npm never installs devDependencies if the environment is set to production. Official documentation states:
With the --production flag (or when the NODE_ENV environment variable is set to production), npm will not install modules listed in devDependencies. (link)
To fix that we can run npm install as development.
The idea of the buildpack is to install
devDependencies
even if theNODE_ENV
is set toproduction
simply avoiding the flag--production
onnpm install
.Unfortunately this doesn't work since npm never installs
devDependencies
if the environment is set toproduction
. Official documentation states:To fix that we can run npm install as
development
.