It turns out that heroku doesn’t install anything from devDependencies by default. While generally this is a good idea, I needed this switched on for this project.
The trick is to change an environment variable in your apps settings.
If you use the web dashboard, the Config Variables can be found on the Settings page:
Or you can use the
heroku toolbelt by simply issuing the following command:
heroku config:set --app <YOUR-APP-NAME> NPM_CONFIG_PRODUCTION=false
This works well for me, but I wouldn’t be surprised if there is a better way to set this up. Hit me up in the comments if you have a suggestion for improvement