From 30fdd3ae6608a74952a85bb687402513f911d0ad Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:10:46 +0100 Subject: [PATCH] fix(linkwarden): remove broken npx playwright install commands Linkwarden's apps/web/package.json has a postinstall hook that runs 'playwright install --with-deps chromium' automatically during yarn install. The explicit 'npx playwright install-deps' and 'npx playwright install' are redundant and break under Yarn 4 PnP, where npx gets intercepted by Yarn's command resolution resulting in: Usage Error: Couldn't find a script named 'playwright'. Fixes #12586 --- ct/linkwarden.sh | 2 -- install/linkwarden-install.sh | 2 -- 2 files changed, 4 deletions(-) diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 381f71c53..2bc18283e 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -57,8 +57,6 @@ function update_script() { $STD corepack prepare "yarn@${yarn_ver}" --activate || true fi $STD yarn - $STD npx playwright install-deps - $STD npx playwright install mv /opt/.env /opt/linkwarden/.env $STD yarn prisma:generate $STD yarn web:build diff --git a/install/linkwarden-install.sh b/install/linkwarden-install.sh index 8c4f6f664..986b31baf 100644 --- a/install/linkwarden-install.sh +++ b/install/linkwarden-install.sh @@ -48,8 +48,6 @@ if command -v corepack >/dev/null 2>&1; then $STD corepack prepare "yarn@${yarn_ver}" --activate || true fi $STD yarn -$STD npx playwright install-deps -$STD npx playwright install cat </opt/linkwarden/.env NEXTAUTH_SECRET=${SECRET_KEY} NEXTAUTH_URL=http://${LOCAL_IP}:3000