Ivan Derlich
Ivan Derlich

Reputation: 685

ERROR: Application not supported by 'heroku/nodejs' buildpack

I type:

git push heroku master

and I get:

enter image description here enter image description here

The file package.json is present here

I've tried:

heroku buildpacks:set heroku/nodejs

And I still get the error.

This is the repo branch.

Upvotes: 1

Views: 475

Answers (1)

Ivan Derlich
Ivan Derlich

Reputation: 685

git push heroku [local branch name]:master

If I don't specify the local branch name. Heroku will automatically deploy from local master. That branch doesn't have a package.json file. That's why I got the error.

Upvotes: 2

Related Questions