Problems updating N8N on Heroku

Hi! I’m super new to deploying apps on heroku. I deployed to heroku using this one-click button here GitHub - n8n-io/n8n-heroku .
I am however facing an issue trying to update the version (i’m running on 1.72.1 ), i run command "npm install -g n8n@latest"but it run and stuck at this image.

Appreciate any help! Thank you :pray:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

How long have you waited? It seems like npm is still trying to download n8n.

I would never every recommend using npm directly with heroku, i
Heroku uses a different deployment model:

  1. Clone the n8n-heroku repository locally:
git clone https://github.com/n8n-io/n8n-heroku.git
cd n8n-heroku
  1. Update the package.json file to specify the latest n8n version:
"dependencies": {
  "n8n": "^1.81.0",
  ...
}
  1. Connect to your Heroku app and push the changes:
heroku git:remote -a your-app-name
git add .
git commit -m "Update n8n to latest version"
git push heroku master

→ -> → Recommended:
Use the Heroku Dashboard to connect your GitHub repository and enable automatic deploys from the updated repository.

2 Likes

really awesome. thank you so much. both solutions worked and it helped me understand github better

1 Like

Please Consider marking the previous comment as Solution if it solved you problem. :smile:

1 Like

I have updated to version 1.80.5. This is probably the latest version for docker.

Always update to the latest version, if you can handel update to next version but beware of bugs.

Have Fun Full time with N8N

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.