Here`s what worked for me: In your Heroku app, go to Settings, then click Reveal Config Vars and then add a new record with KEY NPM_CONFIG_PRODUCTION and Value false.