Skip to content

Instantly share code, notes, and snippets.

@gamer191
Last active March 31, 2026 17:28
Show Gist options
  • Select an option

  • Save gamer191/8756d61b1e52e069fb40363e61bd2816 to your computer and use it in GitHub Desktop.

Select an option

Save gamer191/8756d61b1e52e069fb40363e61bd2816 to your computer and use it in GitHub Desktop.
Install Deno for yt-dlp

Due to recent changes by YouTube, yt-dlp now requires Deno (not Denort) to be installed in order to download YouTube videos in maximum quality. If you don't plan on downloading youtube videos, or don't care about video quality, you can ignore this tutorial:

Option 1: install Deno for yt-dlp only

  1. Download Deno (not Denort):
OS Download link
Windows https://github.com/denoland/deno/releases/latest/download/deno-x86_64-pc-windows-msvc.zip
MacOS (Apple Silicon) https://github.com/denoland/deno/releases/latest/download/deno-aarch64-apple-darwin.zip
MacOS (Intel) https://github.com/denoland/deno/releases/latest/download/deno-x86_64-apple-darwin.zip
Linux (uname -m outputs x86_64) https://github.com/denoland/deno/releases/latest/download/deno-x86_64-unknown-linux-gnu.zip
Linux (uname -m outputs aarch64) https://github.com/denoland/deno/releases/latest/download/deno-aarch64-unknown-linux-gnu.zip
  1. Open the zip file, and copy deno or deno.exe to the same folder as yt-dlp

Option 2: install Deno system-wide

EDIT: this script is recommended at https://deno.com/ (scroll down to the "install Deno" section). If you don't feel comfortable running scripts, use the other option

Windows users should run powershell "irm https://deno.land/install.ps1 | iex"

MacOS and Linux users should run curl -fsSL https://deno.land/install.sh | sh

Warning

It is important to keep Deno up-to-date. This can be done by routinely running deno upgrade. Using outdated versions of Deno (or other yt-dlp dependencies such as ffmpeg) could allow Youtube to execute code on your computer, although its highly unlikely that youtube would actually do that. Currently yt-dlp does not use Deno on any other websites.

@ArisNeander
Copy link
Copy Markdown

Yeah, no. I'm not executing a shell script from the Internet without reading it first. When did this become acceptable?

@mpdivo
Copy link
Copy Markdown

mpdivo commented Mar 18, 2026

I should have read the comment first. Luckily my antivirus detected it.

@gamer191
Copy link
Copy Markdown
Author

The script is recommended on https://deno.com/ (scroll down to the "Install Deno" header) so if you trust Deno then I don’t see the issue. But yeah, feel free to download it first and then run it

@mpdivo it’s a good lesson that you shouldn’t execute commands you don’t understand. But in this case it’s an innocent script that’s recommended by Deno’s maintainers. I don’t know why your antivirus detected it

@gamer191
Copy link
Copy Markdown
Author

gamer191 commented Mar 31, 2026

I’ve added a disclaimer to the gist, so that the fact it executes a script won’t catch other people off guard. I still recommend it because it’s the easiest way to install it, but I understand why it might make some users uncomfortable

EDIT: on second thought, I’m gonna swap the options around

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment