Why does Heroku fail to detect Node.js buildpack?

前端 未结 7 904
慢半拍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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 16:41

    If you are working on a branch, you need to set master to track your branch

    git branch -f --track master origin/branch_name

    Check for package.json in master

    git show master:package.json

    If it's available, trying pushing again.

    git push heroku master

    `

提交回复
热议问题