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

windows: bunx fails when node is not installed #8795

Closed
paperdave opened this issue Feb 8, 2024 · 7 comments · Fixed by #9143
Closed

windows: bunx fails when node is not installed #8795

paperdave opened this issue Feb 8, 2024 · 7 comments · Fixed by #9143
Labels
bug Something isn't working windows An issue that is known to occur on Windows

Comments

@paperdave
Copy link
Member

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

install fresh windows and only install bun

bun create vite

What is the expected behavior?

it to work

What do you see instead?

error: interpreter executable could not be found

Bun failed to remap this bin to it's proper location within node_modules.
This is an indication of a corrupted node_modules directory.

Please run 'bun install --force' in the project root and try
it again. If this message persists, please open an issue:
https:/oven-sh/bun/issues

Additional information

This is a bug in bunx code that doesnt ensure a node binary exists before starting the bin.

It is also technically a fault of bun_shim_impl for not having a fallback for when node.exe is requested but not found. these are technically separate concerns.

@paperdave paperdave added bug Something isn't working windows An issue that is known to occur on Windows labels Feb 8, 2024
@JIAFENG123
Copy link

I have the same problem

@OmarAfet
Copy link

OmarAfet commented Feb 20, 2024

I'm facing the same issue. followed the instructions on this page, I still can't get past npx supabase login step, I used bunx.

@JasonGaoG
Copy link

The same issue to me,is there any solutions ?

@FireBird22
Copy link

The same issue to me,is there any solutions ?

For now, install node. I guess it will be fixed in a future release but i don't think there is workaround to it as of right now.

@AQian-Cup
Copy link

AQian-Cup commented Feb 26, 2024

bun create vue@latest will also not work properly.

This may be caused by the fact that the Vue/Vite team has not yet provided enough support for Bun, or it may be caused by the fact that Bun is currently not good enough for compatibility on Windows.

@paperdave
Copy link
Member Author

Vue/Vite team has not yet provided enough support for Bun

This specific issue should not require any work from other projects. I will fix this soon since it breaks bunx, bun i -g, and other things.

@paperdave
Copy link
Member Author

as of the PR, this error message is been improved.

image

though, to take this screenshot i've commented out specific handling for node, which will immediatly try to run it in bun if this path is hit (meaning if you run this without "bun" in your path, you may see "bun" in this message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows An issue that is known to occur on Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants