1.6 KiB
1.6 KiB
Installation
Methode 1: Auf dem Host bauen (EMPFOHLEN) ⭐
Die zuverlässigste Methode für Docker-Installationen.
Voraussetzungen
- Node.js 18+
- npm
- Docker
Installation
# 1. Klonen
git clone https://github.com/your-org/n8n-nodes-librebooking.git
cd n8n-nodes-librebooking
# 2. Dependencies installieren
npm install
# 3. Bauen
npm run build
# 4. In Container kopieren
docker cp dist n8n:/home/node/.n8n/custom/n8n-nodes-librebooking/
docker cp package.json n8n:/home/node/.n8n/custom/n8n-nodes-librebooking/
docker cp node_modules n8n:/home/node/.n8n/custom/n8n-nodes-librebooking/
# 5. Container neustarten
docker restart n8n
Mit Skript
./quick-install.sh n8n
Mit npm scripts
npm install
npm run docker:deploy
Methode 2: Docker mit vorgebautem dist/
Für Read-only Volumes.
# 1. Bauen
npm install
npm run build
# 2. Kopieren
cp -r dist package.json node_modules /pfad/zu/custom-nodes/n8n-nodes-librebooking/
# 3. docker-compose.yml
volumes:
- ./custom-nodes:/home/node/.n8n/custom:ro # Read-only möglich!
Methode 3: Native Installation (ohne Docker)
# 1. Installieren
npm install
npm run build
npm link
# 2. n8n starten
n8n start
Verifikation
Nach der Installation:
- Öffne n8n: http://localhost:5678
- Erstelle neuen Workflow
- Suche nach "LibreBooking"
- Wenn der Node erscheint → ✅ Installation erfolgreich
Deinstallation
# Docker
docker exec n8n rm -rf /home/node/.n8n/custom/n8n-nodes-librebooking
docker restart n8n
# Native
npm unlink -g n8n-nodes-librebooking