File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Error: Command timed out after 900000ms: "cd ... && pnpm install"
1818** Why This Happens:**
1919
2020First-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
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Error: Command timed out after 900000ms: "cd ... && pnpm install"
1818** 原因分析:**
1919
2020Windows 首次安装可能较慢,原因包括:
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
You can’t perform that action at this time.
0 commit comments