playwright: force --browser chromium (v2 / 1.0.1)

default 'chrome' channel requires system Google Chrome, missing on slim
Linux hosts; use the postinstall-downloaded Chromium build instead
This commit is contained in:
Daniele
2026-08-19 18:20:13 +01:00
parent fa8bbcb808
commit f02bb78ebd
5 changed files with 14 additions and 9 deletions
+5 -5
View File
@@ -1270,8 +1270,8 @@
"type": "none"
},
"folder": "playwright",
"version": 1,
"version_string": "1.0.0",
"version": 2,
"version_string": "1.0.1",
"version_release_date": "2026-08-19",
"tools": [
{
@@ -1374,7 +1374,7 @@
"files": [
{
"path": "connector.json",
"sha256": "aa9e6ac53b7c7abaa595ce99fcf903e0fffffb28f385c4d9d5107d16be4c8978",
"sha256": "9ebfaacc83fe8db6ddb115e7541f10cea9d146a4e65c55aae5cee3a39824ce7f",
"size": 4031
},
{
@@ -1389,8 +1389,8 @@
},
{
"path": "index.js",
"sha256": "7bbdee60a27013fa3b4b139d90b83f3c72c25520693e76c6e8860d7085446dc8",
"size": 1537
"sha256": "16235e1124850536ce6435d6c13d1234893699901b6f9128b36c9937ff98f7f2",
"size": 1719
},
{
"path": "package.json",
+2 -2
View File
@@ -45,8 +45,8 @@
"web",
"scraping"
],
"version": 1,
"version_string": "1.0.0",
"version": 2,
"version_string": "1.0.1",
"version_release_date": "2026-08-19",
"tools": [
{
+2 -2
View File
@@ -22,8 +22,8 @@
"type": "none"
},
"folder": "playwright",
"version": 1,
"version_string": "1.0.0",
"version": 2,
"version_string": "1.0.1",
"version_release_date": "2026-08-19",
"tools": [
{
+1
View File
@@ -24,6 +24,7 @@ const packageDir = dirname(require.resolve("@playwright/mcp/package.json"));
process.argv = [
process.argv[0],
"playwright-mcp",
"--browser", "chromium", // default is the "chrome" channel (system Google Chrome), which is not installed on slim hosts; use the Chromium build downloaded by the postinstall hook
"--headless", // no display in the container/host session
"--isolated", // in-memory profile: no shared cookies/login state on disk
"--no-sandbox", // Chromium sandbox cannot run inside containers