This is the error I encountered with package.json when running foreman start with Heroku Toolbelt for Node.js
"dependencies":
{
"express": "~4.4.0",
"jade": "~1.3.1"
}
I had the same issues as Jek. I was using express 4.4.4. I downgraded express 3.2.6 and it worked, but I shouldn't be forced to use an older version of express just because foreman doesn't support it.
I tried node-foreman. And it worked for me. I followed the instructions that included these steps:
I would like to know if anyone has additional suggestions.
I managed to fix this issue by changing express version to 3.2.6 as seen below
"dependencies":
{
"express": "~3.2.6",
"jade": "~1.3.1"
}
Then I deleted node_modules and did a npm install. Following this a foreman start works perfectly fine.
However I have no idea why it doesn't work when it runs on express 4 but it works when running on express 3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With