Installation Guide¶
This guide covers all the different ways to install and set up n8n-lint.
Prerequisites¶
- Python 3.12 or higher
- pip or uv package manager
Installation Methods¶
Method 1: Using pip (Recommended for most users)¶
Method 2: Using uv (Recommended for development)¶
# Install uv if you haven't already
pip install uv
# Install n8n-lint
uv add n8n-lint
# Or use uvx for one-time usage
uvx n8n-lint validate workflow.json
Method 3: From Source¶
# Clone the repository
git clone https://github.com/capp3/n8n_lint.git
cd n8n_lint
# Install in development mode
pip install -e .
# Or using uv
uv sync
uv run n8n_lint validate workflow.json
Verification¶
After installation, verify that n8n-lint is working correctly:
# Check version
n8n_lint --version
# Should output: n8n-lint version 1.1.0
# Check help
n8n_lint --help
Virtual Environments¶
It's recommended to use a virtual environment:
Using venv¶
# Create virtual environment
python -m venv n8n-lint-env
# Activate (Linux/macOS)
source n8n-lint-env/bin/activate
# Activate (Windows)
n8n-lint-env\Scripts\activate
# Install n8n-lint
pip install n8n-lint
Using uv¶
# Create project with uv
uv init my-project
cd my-project
# Add n8n-lint as dependency
uv add n8n-lint
# Run n8n-lint
uv run n8n_lint validate workflow.json
Global vs Local Installation¶
Global Installation¶
Local Installation (Project-specific)¶
Docker Installation¶
If you prefer to use Docker:
# Build Docker image
docker build -t n8n-lint .
# Run validation
docker run --rm -v $(pwd):/workspace n8n-lint validate /workspace/workflow.json
Troubleshooting Installation¶
Common Issues¶
Issue: command not found: n8n_lint
Issue: Permission denied
Issue: Python version too old
Platform-Specific Notes¶
Windows¶
- Make sure Python is in your PATH
- Use PowerShell or Command Prompt
- Consider using Windows Subsystem for Linux (WSL)
macOS¶
- Use Homebrew to install Python:
brew install python
- May need to update PATH in your shell profile
Linux¶
- Use your package manager to install Python 3.12+
- Ubuntu/Debian:
sudo apt install python3.12 python3.12-pip
- CentOS/RHEL:
sudo yum install python312 python312-pip
Next Steps¶
After successful installation:
- Basic Usage Guide - Learn how to validate workflows
- Examples - See common usage patterns
- CLI Reference - Complete command documentation
Support¶
If you encounter installation issues:
- Check the CLI Reference
- Open an issue