@cloud411716/fancy-webnovel 0.1.91 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -154,7 +154,7 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
|
|
|
154
154
|
});
|
|
155
155
|
const answer = choice.answers[0]?.selected?.[0] ?? choice.answers[0]?.custom;
|
|
156
156
|
if (!answer || answer === '我自己安装') {
|
|
157
|
-
notify(session, '⚠️ 已取消。请手动安装 Chromium 后再次运行 /fancy-scan。\n安装命令:npm install -g
|
|
157
|
+
notify(session, '⚠️ 已取消。请手动安装 Chromium 后再次运行 /fancy-scan。\n安装命令:npm install -g playwright@1.40.0 --registry=https://registry.npmmirror.com && PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ playwright install chromium --with-deps');
|
|
158
158
|
return undefined;
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -163,7 +163,7 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
|
|
|
163
163
|
const installStop = startActivity(session);
|
|
164
164
|
|
|
165
165
|
const installProc = spawn('sh', ['-c',
|
|
166
|
-
'npm install -g
|
|
166
|
+
'npm install -g playwright@1.40.0 --registry=https://registry.npmmirror.com && PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ playwright install chromium --with-deps'
|
|
167
167
|
], {
|
|
168
168
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
169
169
|
cwd: process.cwd(),
|
|
@@ -216,7 +216,7 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
|
|
|
216
216
|
resolve('retry');
|
|
217
217
|
} else {
|
|
218
218
|
const out = installOut.join('').slice(-300);
|
|
219
|
-
notify(session, `❌ Chromium 安装失败(exit ${code})。\n请手动运行以下命令后重试:\n npm install -g
|
|
219
|
+
notify(session, `❌ Chromium 安装失败(exit ${code})。\n请手动运行以下命令后重试:\n npm install -g playwright@1.40.0 --registry=https://registry.npmmirror.com && PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ playwright install chromium --with-deps\n\n安装日志末尾:\n${out}`);
|
|
220
220
|
resolve(undefined);
|
|
221
221
|
}
|
|
222
222
|
});
|