The recommended way is using our docker image Digital Boss' N8N custom nodes docker image
N8N documentation on custom nodes
Clone the n8n-nodes-hfd repository and execute:
# Install dependencies
npm install
# Build the code
npm run build
# Create symlink at your global node_modules cache
npm link
ls -la $(npm -g root) # check created link
Create an N8N installation and add the n8n-nodes-hfd to it:
# Create an N8N installation
cd ..
mkdir n8n-local
cd n8n-local
npm init -y
npm install --save-dev n8n
# "Install" the locally published module
npm link @digital-boss/n8n-nodes-hfd
# Start n8n
npx n8n