Why are my Node.js app modules "not found" when booting the app?


Node.js builds or processes are failing with a module "not found" error.


Heroku doesn't install devDependencies by default as it is considered a production environment https://devcenter.heroku.com/articles/nodejs-support#devdependencies

You can either move any required packages to the dependencies section of package.json, or you can choose to install devDependencies during the build by running:

heroku config:set NPM_CONFIG_PRODUCTION=false

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support
Terms of Service Privacy Cookies © 2018 Salesforce.com