mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user