Why does Heroku fail to detect Node.js buildpack?

前端 未结 7 903
慢半拍i
慢半拍i 2020-12-14 16:18

I git cloned a Node.js application (the version specified in the package.json being 4.1.2 and that of my local machine being 6.2.2) an

7条回答
  •  感动是毒
    2020-12-14 17:04

    I had similar issue, here are the steps which solved the problem.

    heroku buildpacks:set heroku/nodejs
    git push heroku master
    

    Basically details are in the more info link -


    This situation may also occur if you remove or rename a file that previously led to the automatic detection of your application type and thus the automatic setting of the detected buildpack on your application.


提交回复
热议问题