Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawn bun ENOENT #12177

Open
MrOxMasTer opened this issue Jun 26, 2024 · 3 comments
Open

Error: spawn bun ENOENT #12177

MrOxMasTer opened this issue Jun 26, 2024 · 3 comments
Labels
bug Something isn't working needs triage

Comments

@MrOxMasTer
Copy link

What version of Bun is running?

1.1.17+bb66bba1b

What platform is your computer?

windows

What steps can reproduce the bug?

bun create next-app

What is the expected behavior?

No mistakes

What do you see instead?

bun create next-app
√ What is your project named? ... my-app
√ Would you like to use TypeScript? ... No / Yes
√ Would you like to use ESLint? ... No / Yes
√ Would you like to use Tailwind CSS? ... No / Yes
√ Would you like to use src/ directory? ... No / Yes
√ Would you like to use App Router? (recommended) ... No / Yes
√ Would you like to customize the default import alias (@/*)? ... No / Yes
Creating a new Next.js app in ...

Using bun.

Initializing project with template: app-tw

Installing dependencies:

  • react
  • react-dom
  • next

Installing devDependencies:

  • typescript
  • @types/node
  • @types/react
  • @types/react-dom
  • postcss
  • tailwindcss
  • eslint
  • eslint-config-next

node:events:497
throw er; // Unhandled 'error' event
^

Error: spawn bun ENOENT
at notFoundError (C:\Users\CD861\AppData\Local\Temp\bunx-596791048-create-next-app@latest\node_modules\create-next-app\dist\index.js:8:77149)
at verifyENOENT (C:\Users\CD86
1\AppData\Local\Temp\bunx-596791048-create-next-app@latest\node_modules\create-next-app\dist\index.js:8:77528)
at t.emit (C:\Users\CD861\AppData\Local\Temp\bunx-596791048-create-next-app@latest\node_modules\create-next-app\dist\index.js:8:77383)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
Emitted 'error' event on ChildProcess instance at:
at t.emit (C:\Users\CD86
1\AppData\Local\Temp\bunx-596791048-create-next-app@latest\node_modules\create-next-app\dist\index.js:8:77424)
at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn bun',
path: 'bun',
spawnargs: [ 'install' ]
}

Node.js v20.15.0

Additional information

No response

@MrOxMasTer MrOxMasTer added bug Something isn't working needs triage labels Jun 26, 2024
@museadam
Copy link

museadam commented Jun 26, 2024

When running bun create next-app on my machine I could not reproduce the bug. You could try uninstalling and reinstalling bun.

@MrOxMasTer
Copy link
Author

When running bun create next-app on my machine I could not reproduce the bug. You could try uninstalling and reinstalling bun.

I deleted it using this command and installed it using powershell too
powershell -c ~\.bun\uninstall.ps1

The result is the same:
image

The fact is that it sort of installs, but at the same time this error occurs. The bonus is the strange Appdata folder, which (it seems to me) should not appear here.

@MrOxMasTer
Copy link
Author

I do not know if the Cyrillic alphabet plays a role with my windows User, but it does. Maybe the information will help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants