From 36e3315dcafb64657e1b7887db86e5cc2a627925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sun, 26 Oct 2025 15:37:29 +0100 Subject: [PATCH] fix install on older systems --- npm_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm_install.py b/npm_install.py index 684866b..6732647 100644 --- a/npm_install.py +++ b/npm_install.py @@ -265,7 +265,7 @@ def download_extract_tar_gz(url: str, dest_dir: Path) -> Path: with tarfile.open(tf_path, "r:gz") as t: try: t.extractall(dest_dir, filter="data") - except TypeError: + except (TypeError, tarfile.LinkOutsideDestinationError): t.extractall(dest_dir) top = t.getmembers()[0].name.split("/")[0] os.unlink(tf_path)