Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

246
Vistas
Heroku skips pruning devDependencies when NPM_CONFIG_PRODUCTION is 'false'

I'm trying to deploy a JS/node/express/webpack application to Heroku.

I need Heroku to install my devDependencies because it includes webpack, which is necessary to build the client-side files of my project.

However, I cannot get Heroku to read my devDependencies.

I have read everywhere that setting NPM_CONFIG_PRODUCTION = 'false' will fix this, but it does not. Here are my config vars for my Heroku build (taken from the build log):

NPM_CONFIG_PRODUCTION=false    // I set this from both the heroku-cli and the web ui
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true

Then the logs go on to say:

-----> Pruning devDependencies
       Skipping because NPM_CONFIG_PRODUCTION is 'false'

Isn't the desired behavior that devDependencies will be install when this var is set to false?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda