Closed lawnfox14 closed 6 hours ago
@lawnfox14, the latest version of Bun is v1.1.33, but this crash was reported on Bun v1.1.26.
Are you able to reproduce this crash on the latest version of Bun?
bun upgrade
may be a duplicate of https://github.com/oven-sh/bun/issues/10844
Not sure what is going on but this is the error I get when creating a new project... It doesn't matter which cli options I choose...
Arch Linux
Node.js v22.11.0
Bun 1.1.34
~/Code
> bunx sv create ******
┌ Welcome to the Svelte CLI! (v0.6.3)
│
◇ Which template would you like?
│ SvelteKit minimal
│
◇ Add type checking with Typescript?
│ Yes, using Typescript syntax
│
◆ Project created
│
◇ What would you like to add to your project? (use arrow keys / space bar)
│ prettier, eslint
│
◇ Which package manager do you want to install dependencies with?
│ bun
│
◆ Successfully setup add-ons
│
■ Failed to install dependencies
│ bun install v1.1.34 (5e5e7c60)
│ Resolving dependencies
│ Resolved, downloaded and extracted [164]
│ node:internal/child_process:1123
│ result.error = new ErrnoException(result.error, 'spawnSync ' + options.file);
│ ^
│
│ <ref *1> Error: spawnSync /home/***/Code/******/node_modules/esbuild/bin/esbuild EACCES
│ at Object.spawnSync (node:internal/child_process:1123:20)
│ at spawnSync (node:child_process:874:24)
│ at Object.execFileSync (node:child_process:917:15)
│ at validateBinaryVersion (/home/***/Code/*******/node_modules/esbuild/install.js:99:28)
│ at /home/***/Code/******/node_modules/esbuild/install.js:283:5 {
│ errno: -13,
│ code: 'EACCES',
│ syscall: 'spawnSync /home/***/Code/******/node_modules/esbuild/bin/esbuild',
│ path: '/home/***/Code/******/node_modules/esbuild/bin/esbuild',
│ spawnargs: [ '--version' ],
│ error: [Circular *1],
│ status: null,
│ signal: null,
│ output: null,
│ pid: 0,
│ stdout: undefined,
│ stderr: undefined
│ }
│
│ Node.js v22.11.0
│
│ error: postinstall script from "esbuild" exited with 1
│
└ Operation failed.
@oluijks this issue is specific to windows, what you're seeing is https://github.com/oven-sh/bun/issues/8729
@nektro Whoops, my apologies... Should I update 8729?
Fixed by #15357.
How can we reproduce the crash?
run the command "bunx sv create testSvelte5" in a windows 11 desktop in VSCode terminal.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.26 (
0a37423
) on windows x86_64 [AutoCommand]Segmentation fault at address 0x00000005
CodeBlock.h:299
:JSC::CodeBlock::bytecodeOffset
Sentry Issue: BUN-1Y1