Skip to content

Notes

How to update yt-dlp on a Mac, and why Deno now needs updating too

One command for each way yt-dlp gets installed, how to tell which one you have, and the check that catches the quiet failure: an old Deno that costs you the best formats without an error.

It depends on how you installed it. Pick your line:

brew upgrade yt-dlp                            # Homebrew
yt-dlp -U                                      # the yt-dlp_macos binary from GitHub
python3 -m pip install -U "yt-dlp[default]"    # pip
pipx upgrade yt-dlp                            # pipx

Then check what you’re running:

yt-dlp --version

On 30 September 2026 the current stable release is 2026.08.19. If yours is older than a few weeks, that alone explains most YouTube errors. And since late 2025 there’s a second thing to keep current, which most update guides leave out: the JavaScript runtime. It’s further down.

Which one do you have?

If you don’t remember, ask yt-dlp. The verbose flag prints where it came from, near the top:

yt-dlp -v 2>&1 | grep "yt-dlp version"
[debug] yt-dlp version stable@2026.08.19 from yt-dlp/yt-dlp [594bd50c2] (pip)

The word in brackets at the end is the install type. (pip) means pip or pipx, (darwin_exe) the binary from GitHub. A Homebrew install says so in its path:

which yt-dlp

/opt/homebrew/bin/yt-dlp on Apple Silicon, /usr/local/bin/yt-dlp on an Intel Mac with Homebrew. The binary from GitHub lives wherever you put it, often /usr/local/bin too, so check the -v line if in doubt.

When -U refuses

-U only updates the standalone binary. On anything else it stops and tells you to use the tool that installed it. On a pip install it says:

You installed yt-dlp with pip or using the wheel from PyPi; Use that to update

On Homebrew or another package manager:

You installed yt-dlp from a manual build or with a package manager; Use that to update

Neither is an error in yt-dlp. Run the matching line from the top of this page.

Having two copies is the other classic. You run brew upgrade, --version still shows the old number, and it’s because a pip copy sits earlier in your PATH. which -a yt-dlp lists every copy in the order your shell finds them. Remove the one you don’t use.

When -U breaks

In August the update to 2026.08.19 failed for some binary installs (#17489), with the updater suddenly asking for sudo. When -U can’t do it, replace the binary by hand. It’s one file:

curl -L -o /usr/local/bin/yt-dlp \
  https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos
chmod a+rx /usr/local/bin/yt-dlp

Change the path if yours is elsewhere. Add sudo in front of both lines if /usr/local/bin belongs to root on your Mac.

Stable or nightly

Stable releases come out every few weeks. The nightly channel gets every fix the day it’s merged, which is what you want in the days after YouTube breaks something:

yt-dlp --update-to nightly                          # binary
python3 -m pip install -U --pre "yt-dlp[default]"   # pip

yt-dlp --update-to stable goes back. Homebrew follows stable releases only.

The part that fails without an error: Deno

yt-dlp now runs part of YouTube’s own JavaScript to get the full list of formats, and for that it needs a JavaScript runtime. Deno is the one it looks for by default. The background is in the nsig article.

Here is the catch. yt-dlp 2026.08.19 needs Deno 2.3.0 or later. An older Deno counts as no runtime at all. And when no runtime is available, yt-dlp does not stop. It falls back to a single YouTube client, prints one warning, and downloads whatever that client offers:

WARNING: [youtube] No supported JavaScript runtime could be found. Only deno is enabled by default; to use another runtime add  --js-runtimes RUNTIME[:PATH]  to your command/config. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing.

In a script or a long playlist, nobody reads that line. One user found out after archiving thousands of videos, and asked for a flag that refuses to download in that state (#17701, open). Until it exists, check it yourself:

yt-dlp -v 2>&1 | grep "JS runtimes"

What you want to see is deno followed by a version number, 2.3.0 or higher:

[debug] JS runtimes: deno-2.x.x

What you don’t want:

[debug] JS runtimes: none
[debug] JS runtimes: deno-2.1.4 (unsupported)

(unsupported) means installed but too old. Update it the same way:

brew upgrade deno     # or: brew install deno, if it says none
deno --version

If you installed Deno with its own install script rather than Homebrew, deno upgrade does it.

Node works too, from version 22, but only if you ask for it: --js-runtimes node. yt-dlp won’t pick it up on its own.

Check the pieces yt-dlp needs next to it

Two other things live beside yt-dlp and go stale separately.

yt-dlp-ejs. The JavaScript that yt-dlp hands to Deno comes in a small package. The GitHub binary includes it. A pip install includes it only with the [default] extra, which is why the pip line above has it. The -v output lists it among the optional libraries, as yt_dlp_ejs-0.8.0 or similar. If it’s missing, reinstall with "yt-dlp[default]".

FFmpeg. It doesn’t need to be current as often, but it needs to be there. Without it, anything above 360p comes out as two files, one silent.

How often

Whenever something breaks is too late: the first failed download of the day is the one you noticed. Before a long job is the minimum. Once a week covers most people.

This is the part the app I build takes off your hands. It checks for a new yt-dlp once a day and replaces its own copy. It doesn’t manage Deno. If you use the app and the command line side by side, the brew upgrade deno above still applies to your Terminal.

The short version

You want Command
Update, Homebrew brew upgrade yt-dlp
Update, GitHub binary yt-dlp -U
Update, pip python3 -m pip install -U "yt-dlp[default]"
Know which install you have yt-dlp -v 2>&1 | grep "yt-dlp version"
Find duplicate copies which -a yt-dlp
Get tomorrow’s fix today yt-dlp --update-to nightly
Check the runtime yt-dlp -v 2>&1 | grep "JS runtimes"
Deno too old brew upgrade deno

If you’re here because of an error after signing in, the cookie side has its own page.