Compare commits

...

1 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
30fdd3ae66 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
2026-03-05 15:10:46 +01:00
2 changed files with 0 additions and 4 deletions

View File

@@ -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

View File

@@ -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 <<EOF >/opt/linkwarden/.env
NEXTAUTH_SECRET=${SECRET_KEY}
NEXTAUTH_URL=http://${LOCAL_IP}:3000