Playwright 版本降到稳定旧版

This commit is contained in:
yml
2026-04-08 17:43:26 +08:00
parent c09368d2c2
commit 5787925179
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ docker compose up -d
- Debian `apt` 使用腾讯云镜像 - Debian `apt` 使用腾讯云镜像
- `npm` 使用 `npmmirror` - `npm` 使用 `npmmirror`
- `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像 - `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像
- Playwright 浏览器固定使用官方源 - 后端 Playwright 固定为 `1.42.1`,浏览器下载使用 `npmmirror`
如果你的服务器网络环境不同,也可以在构建时覆盖: 如果你的服务器网络环境不同,也可以在构建时覆盖:
+10 -10
View File
@@ -9,7 +9,7 @@
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"express": "^5.1.0", "express": "^5.1.0",
"playwright": "^1.59.1" "playwright": "1.42.1"
} }
}, },
"node_modules/accepts": { "node_modules/accepts": {
@@ -585,33 +585,33 @@
} }
}, },
"node_modules/playwright": { "node_modules/playwright": {
"version": "1.59.1", "version": "1.42.1",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.1.tgz", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.42.1.tgz",
"integrity": "sha512-C8oWjPR3F81yljW9o5OxcWzfh6avkVwDD2VYdwIGqTkl+OGFISgypqzfu7dOe4QNLL2aqcWBmI3PMtLIK233lw==", "integrity": "sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright-core": "1.59.1" "playwright-core": "1.42.1"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=16"
}, },
"optionalDependencies": { "optionalDependencies": {
"fsevents": "2.3.2" "fsevents": "2.3.2"
} }
}, },
"node_modules/playwright-core": { "node_modules/playwright-core": {
"version": "1.59.1", "version": "1.42.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.1.tgz", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.42.1.tgz",
"integrity": "sha512-HBV/RJg81z5BiiZ9yPzIiClYV/QMsDCKUyogwH9p3MCP6IYjUFu/MActgYAvK0oWyV9NlwM3GLBjADyWgydVyg==", "integrity": "sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==",
"license": "Apache-2.0", "license": "Apache-2.0",
"bin": { "bin": {
"playwright-core": "cli.js" "playwright-core": "cli.js"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=16"
} }
}, },
"node_modules/proxy-addr": { "node_modules/proxy-addr": {
+1 -1
View File
@@ -12,6 +12,6 @@
}, },
"dependencies": { "dependencies": {
"express": "^5.1.0", "express": "^5.1.0",
"playwright": "^1.59.1" "playwright": "1.42.1"
} }
} }
+1 -1
View File
@@ -26,7 +26,7 @@ RUN python3 -m pip install --no-cache-dir --break-system-packages uv \
COPY apps/backend/package.json apps/backend/package-lock.json ./ COPY apps/backend/package.json apps/backend/package-lock.json ./
RUN npm ci RUN npm ci
RUN PLAYWRIGHT_DOWNLOAD_HOST= npx playwright install --with-deps chromium RUN PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ npx playwright install --with-deps chromium
COPY apps/backend/ ./ COPY apps/backend/ ./
+1 -1
View File
@@ -79,7 +79,7 @@ docker compose up -d
- Debian `apt`:腾讯云镜像 - Debian `apt`:腾讯云镜像
- `npm``npmmirror` - `npm``npmmirror`
- `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像 - `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像
- Playwright固定使用官方源 - 后端 Playwright 固定`1.42.1`,浏览器下载使用 `npmmirror`
如果你要切换成别的源,可以手动执行: 如果你要切换成别的源,可以手动执行: