/n8n-tutorials

How to update nodes in n8n?

Learn how to update nodes in n8n with step-by-step methods for desktop, npm, Docker, and cloud installations. Backup workflows and handle updates safely.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free consultation

How to update nodes in n8n?

Updating nodes in n8n involves several methods depending on your installation type, ranging from automatic updates through the UI to manual updates via CLI commands. For self-hosted installations, you can update through the package manager or Docker, while cloud users simply receive automatic updates. Always back up your workflows before updating to ensure data safety and review the changelog for breaking changes.

 

Step 1: Understand Your n8n Installation Type

 

Before updating nodes in n8n, you need to identify how n8n is installed on your system. The update process differs based on your installation method:

  • Desktop App
  • npm installation
  • Docker container
  • n8n Cloud
  • Other self-hosted options

Knowing your installation type will determine which update method is most appropriate.

 

Step 2: Back Up Your Workflows Before Updating

 

Always create a backup of your workflows before performing any updates:

  • Export your workflows from the n8n UI by selecting each workflow and clicking "Download"
  • If using a database for storage, create a database backup
  • For production environments, consider taking a complete system backup

This precaution ensures you can restore your workflows if anything goes wrong during the update.

 

Step 3: Check for Available Updates

 

To check what updates are available:

  • In the n8n UI, navigate to Settings → Software Updates
  • For CLI installations, use npm view n8n version to see the latest available version
  • Visit the n8n GitHub repository or official documentation for release notes

Review the changelog to understand what has changed and if there are any breaking changes that might affect your workflows.

 

Step 4: Update n8n Nodes via the UI (Desktop App or Self-Hosted)

 

If you're using the desktop app or certain self-hosted installations with UI access:

  • Log in to your n8n instance
  • Navigate to Settings → Software Updates
  • Click "Check for updates"
  • If updates are available, click "Update" to install them
  • Restart n8n when prompted

The UI will guide you through the process and indicate when the update is complete.

 

Step 5: Update n8n via npm (CLI Installation)

 

If you installed n8n using npm, update with these commands:


# For global installations
npm update -g n8n

# Or for specific version
npm install -g n8n@latest

# Restart n8n
n8n start

For local installations in a project:


# Navigate to your project directory
cd your-n8n-project

# Update n8n in your project
npm update n8n

# Or for specific version
npm install n8n@latest

 

Step 6: Update n8n via Docker

 

For Docker installations, update by pulling the latest image and restarting the container:


# Pull the latest image
docker pull n8nio/n8n:latest

# Stop the current container
docker stop n8n-container

# Remove the old container (optional if you're using volumes for data persistence)
docker rm n8n-container

# Start a new container with the updated image
docker run -d --name=n8n-container \\
  -p 5678:5678 \\
  -v ~/.n8n:/home/node/.n8n \\
  n8nio/n8n:latest

If using Docker Compose:


# Pull the latest image
docker-compose pull

# Restart the containers with the new image
docker-compose up -d

 

Step 7: Update Community Nodes

 

Community nodes are separate from the core n8n package and need to be updated individually:

  • Through the UI: Navigate to Settings → Community Nodes → find the node you want to update → click "Update"

Or via npm for CLI installations:


# For globally installed n8n
npm update -g n8n-nodes-[community-node-name]

# For local project installations
npm update n8n-nodes-[community-node-name]

 

Step 8: Update n8n on n8n Cloud

 

If you're using n8n Cloud:

  • Updates are handled automatically by the n8n team
  • You'll receive notifications about major updates
  • No action is required on your part

 

Step 9: Verify the Update

 

After updating, verify that everything is working correctly:

  • Check the n8n version in the UI by going to Settings → About n8n
  • Run a test workflow to ensure it executes correctly
  • Check node functionality, especially for any nodes that were updated
  • Review logs for any error messages

 

Step 10: Troubleshoot Common Update Issues

 

If you encounter problems after updating:

  • Check the n8n logs for error messages
  • Clear your browser cache
  • Restart the n8n service or container
  • Restore from your backup if necessary

For persistent issues:


# View n8n logs
# For npm installations
n8n start --debug

# For Docker
docker logs n8n-container

 

Step 11: Handle Breaking Changes

 

If the update includes breaking changes:

  • Review the changelog or release notes carefully
  • Update affected workflows according to the migration instructions
  • Test workflows thoroughly after updating
  • Consider updating in a staging environment first

Sometimes node parameters or behavior changes require workflow adjustments.

 

Step 12: Update Node Credentials

 

Occasionally, credential requirements for nodes may change:

  • Check if any updated nodes require new or modified credentials
  • Navigate to Settings → Credentials
  • Update existing credentials or create new ones as needed
  • Test connections to ensure they're working

 

Step 13: Setting Up Automatic Updates (Advanced)

 

For self-hosted installations, you can set up automatic updates:

  • Create a scheduled task or cron job that runs the update command
  • Set up monitoring to alert you if updates fail
  • Always include backup steps in your automation

Example cron job for npm installations:


# Create a script called update-n8n.sh
#!/bin/bash
# Backup n8n data
cp -r ~/.n8n ~/.n8n-backup-$(date +%Y%m%d)
# Update n8n
npm update -g n8n
# Restart n8n
systemctl restart n8n

# Make the script executable
chmod +x update-n8n.sh

# Add to crontab (runs weekly)
# 0 2 _ _ 0 /path/to/update-n8n.sh >> /var/log/n8n-update.log 2>&1

 

Step 14: Updating in Production Environments

 

For production environments, follow these best practices:

  • Schedule updates during maintenance windows
  • Always test updates in a staging environment first
  • Create comprehensive backups before updating
  • Have a rollback plan ready
  • Monitor the system closely after updates

 

Step 15: Stay Informed About n8n Updates

 

Keep up with n8n development:

  • Subscribe to the n8n newsletter
  • Join the n8n community forum
  • Follow n8n on GitHub
  • Monitor the n8n blog for release announcements
  • Join the n8n Slack community

Being aware of upcoming changes helps you plan updates and anticipate any workflow modifications you might need to make.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022