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.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
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:
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:
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:
npm view n8n version
to see the latest available versionReview 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:
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:
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:
Step 9: Verify the Update
After updating, verify that everything is working correctly:
Step 10: Troubleshoot Common Update Issues
If you encounter problems after updating:
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:
Sometimes node parameters or behavior changes require workflow adjustments.
Step 12: Update Node Credentials
Occasionally, credential requirements for nodes may change:
Step 13: Setting Up Automatic Updates (Advanced)
For self-hosted installations, you can set up automatic updates:
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:
Step 15: Stay Informed About n8n Updates
Keep up with n8n development:
Being aware of upcoming changes helps you plan updates and anticipate any workflow modifications you might need to make.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.