NPM doesn't install module dependencies when deploying a Grunt app to heroku

前端 未结 3 919
无人及你
无人及你 2021-02-15 12:14

I\'v made a static single page site using grunt. I\'m now trying to deploy it to heroku using the heroku-buildpack-nodejs-grunt for node grunt.

Below is a pic of my roo

3条回答
  •  庸人自扰
    2021-02-15 13:08

    For anyone passing by here, I wasn't able to solve the problem. This is where I got to:

    In my Gruntfile, I moved npm modules from devDependencies to dependencies. Heroku was then able to install these dependencies.

    However, when Heroku ran the tasks, it stops at the haml task w/ error "You need to have Ruby and Haml installed and in your PATH for this task to work". Adding ruby & haml to the Gruntfile as engines did not work.

提交回复
热议问题