Why does Heroku fail to detect Node.js buildpack?

前端 未结 7 906
慢半拍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 16:59

    Most apps have at least one of these signatures present, so if you see this error, it usually means an important file isn't checked into your git repository:

    • Java: pom.xml

    • Ruby: Gemfile

    • Node.js: package.json

    • Python: requirements.txt / setup.py / Pipfile

    • PHP: composer.json / index.php

    You should:

    git add {file}
    git commit -am 'added {file} 
    git push heroku master
    

提交回复
热议问题