That doesn't work well for production instances. This is a better solution:
heroku config:set NODEMODULESCACHE=false git commit -am 'rebuild' --allow-empty git push heroku master heroku config:unset NODEMODULESCACHE
That doesn't work well for production instances. This is a better solution:
heroku config:set NODEMODULESCACHE=false
git commit -am 'rebuild' --allow-empty
git push heroku master
heroku config:unset NODEMODULESCACHE