Skip to content Skip to sidebar Skip to footer

Unable To Push Node.js App On Heroku

I tried pushing my node.js application on heroku but. No default language could be detected for this app. I even tried heroku buildpacks:set heroku/nodejs. But still unable to push

Solution 1:

Based on your logs, it looks like Heroku can't detect the language of your app.

For Node.js, you need to either create a package.json file in the root your project (using something like npm init), or you can create a Procfile in the root of your project to specify your language:

web: node index.js

Solution 2:

go to command line and run following command :

heroku buildpacks:set -a app_name heroku/node

Post a Comment for "Unable To Push Node.js App On Heroku"