Node.js Expres.js Heroku Toolbelt >Foreman Start - Error: write EINVAL

前端 未结 2 437
悲哀的现实
悲哀的现实 2021-01-05 19:48

This is the error I encountered with package.json when running foreman start with Heroku Toolbelt for Node.js

 \"dependencies\": 
{
    \"express\": \"~4.4.0         


        
2条回答
  •  无人及你
    2021-01-05 20:29

    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:

    1. npm install -g foreman
    2. nf start

    I would like to know if anyone has additional suggestions.

提交回复
热议问题