n8n-nodes-starter/start-n8n-with-custom-node.sh
2025-07-03 19:11:21 -03:00

22 lines
301 B
Bash
Executable file

#!/bin/bash
set -e
set -x
N8N_NODES_DIR=~/.n8n/custom
# Build the node
npm install
npm run lint
npm run build
npm link
package_name="$(npm run getPackageName -s)"
mkdir -p "${N8N_NODES_DIR}"
cd "${N8N_NODES_DIR}"
# Link the custom node into n8n
npm link "${package_name}"
# Start the server
n8n