Skip to content

Commit b4b84bd

Browse files
committed
Merge branch 'main' of https://github.com/tw93/Pake
2 parents 9389672 + fe24322 commit b4b84bd

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

bin/builders/BaseBuilder.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ export default abstract class BaseBuilder {
144144
} catch (error: any) {
145145
// If installation times out and we haven't tried the mirror yet, retry with mirror
146146
if (error.message?.includes('timed out') && !usedMirror) {
147-
spinner.fail(chalk.yellow('Installation timed out, retrying with CN mirror...'));
148-
logger.info('✺ Retrying installation with CN mirror for better speed...');
147+
spinner.fail(
148+
chalk.yellow('Installation timed out, retrying with CN mirror...'),
149+
);
150+
logger.info(
151+
'✺ Retrying installation with CN mirror for better speed...',
152+
);
149153

150154
const retrySpinner = getSpinner('Retrying installation...');
151155
usedMirror = true;
@@ -158,7 +162,9 @@ export default abstract class BaseBuilder {
158162
timeout,
159163
buildEnv,
160164
);
161-
retrySpinner.succeed(chalk.green('Package installed with CN mirror!'));
165+
retrySpinner.succeed(
166+
chalk.green('Package installed with CN mirror!'),
167+
);
162168
} catch (retryError) {
163169
retrySpinner.fail(chalk.red('Installation failed'));
164170
throw retryError;

docs/faq.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Error: Command timed out after 900000ms: "cd ... && pnpm install"
1818
**Why This Happens:**
1919

2020
First-time installation on Windows can be slow due to:
21+
2122
- Native module compilation (requires Visual Studio Build Tools)
2223
- Large dependency downloads (Tauri, Rust toolchain)
2324
- Windows Defender real-time scanning
@@ -49,6 +50,7 @@ pake https://github.com --name GitHub
4950
- Use a VPN or proxy if needed
5051

5152
**Expected Time:**
53+
5254
- First installation: 10-15 minutes on Windows
5355
- Subsequent builds: Much faster (dependencies cached)
5456

docs/faq_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Error: Command timed out after 900000ms: "cd ... && pnpm install"
1818
**原因分析:**
1919

2020
Windows 首次安装可能较慢,原因包括:
21+
2122
- 本地模块编译(需要 Visual Studio Build Tools)
2223
- 大量依赖下载(Tauri、Rust 工具链)
2324
- Windows Defender 实时扫描
@@ -49,6 +50,7 @@ pake https://github.com --name GitHub
4950
- 必要时使用 VPN 或代理
5051

5152
**预期时间:**
53+
5254
- 首次安装:Windows 上需要 10-15 分钟
5355
- 后续构建:依赖已缓存,速度会快很多
5456

0 commit comments

Comments
 (0)