我GIT克隆了的Node.js应用程序(在指定的版本package.json之中4.1.2,而我的本地机器存在的6.2.2),并试图与git在Heroku上推.但它没有构建并给出了这个错误:
无法检测到set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz
现在我将buildpack设置为heroku/nodejs并收到以下消息:
Buildpack set. Next release on lit-badlands-92088 will use heroku/nodejs.
Run git push heroku master to create a new release using this buildpack.
Run Code Online (Sandbox Code Playgroud)
现在,当我跑步时git push heroku master,我再次被告知:
remote: -----> Failed to detect set buildpack
https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz
remote: More info:
https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to lit-badlands-92088.
Run Code Online (Sandbox Code Playgroud)
即使我设置了Node.js buildpack也未被检测到的可能原因是什么?