I am faccing error with "yt-dlp -o" data and n8n throe the error. How to solve it? please tell me because i m not complete my workflow without using that node

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The yt-dlp command is not known.
Maybe it’s installed, but not in your $PATH.

May I ask you how you start n8n? And how you installed yt-dlp?

2 Likes

I’m running n8n locally and, as an intermediate user, I’m having trouble with complex workflows. I’ve installed yt-dlp in my Dockerfile, but I’m still encountering errors.

This is the Dockerfile I’m using for n8n (I just added yt-dlp).
I’m able to use yt-dlp both with and without the full path (/usr/bin/yt-dlp).

FROM docker.n8n.io/n8nio/n8n:latest

USER root

RUN apk add --no-cache \
  chromium \
  nss \
  freetype \
  harfbuzz \
  ca-certificates \
  ttf-freefont \
  su-exec \
  dumb-init \
  ffmpeg \
  yt-dlp

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV NODE_PATH=/usr/local/lib/node_modules

RUN npm install -g puppeteer && \
  npm cache clean --force

USER node