Skip to content

Commit 210570f

Browse files
64johnleeclaude
andcommitted
fix: flatten node_modules to resolve Windows path depth limit on bun install
Windows has a MAX_PATH limit of 260 characters. With deeply nested tscircuit dependencies (poppygl → readable-stream → string_decoder → safe-buffer), the nested node_modules structure exceeds this limit, causing ENOENT errors. Solution: Set 'flatten = true' in [install] section of bunfig.toml to generate a flattened node_modules structure, reducing path depth and avoiding Windows MAX_PATH errors during 'bun install' on Windows runners. Fixes: Windows Bun Tests failure - 'Failed to install 1 package' Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 3181c4a commit 210570f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bunfig.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
[install]
2+
# Flatten node_modules to avoid Windows MAX_PATH (260 char) limit with deeply nested dependencies
3+
flatten = true
4+
15
[test]
26
preload = ["tests/fixtures/preload.ts"]

0 commit comments

Comments
 (0)