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 whule creating on Windows #208

Closed
RayyanNafees opened this issue Feb 18, 2024 · 2 comments
Closed

Error whule creating on Windows #208

RayyanNafees opened this issue Feb 18, 2024 · 2 comments
Labels

Comments

@RayyanNafees
Copy link

I ran bun create nue@latest and was greeted with this error:

63 | ${e.green(S)}  ${e.reset(n)} ${e.gray(B.repeat(Math.max(s-t-1,1))+Z)}
64 | ${c}
65 | ${e.gray(z+B.repeat(s+2)+X)}
66 | `)},ue=(r="")=>{process.stdout.write(`${e.gray(d)}  ${e.red(r)}
67 |
68 | `)},oe=(r="")=>{process.stdout.write(`${e.gray(K)}  ${r}
                     ^
TypeError: Failed to create UVStreamSink: uv_pipe_open(1) src.windows_c.E.ISDIR
 code: "ERR_INVALID_ARG_TYPE"

      at node:stream:155:85
      at NativeWritablePrototypeWrite (node:stream:3706:141)
      at oe (C:\Users\nafee\AppData\Local\Temp\create-nue@latest--bunx\node_modules\@clack\prompts\dist\index.mjs:68:17)
      at C:\Users\nafee\AppData\Local\Temp\create-nue@latest--bunx\node_modules\create-nue\cli.js:23:1

image

@RayyanNafees
Copy link
Author

Upon checking nue --version the following error occured

61 |     dot()
62 |   }
63 |
64 |
65 |   // lets do it
66 |   process.stdout.write(colors.green('') + ` Initialize ${dist}: `)
       ^
TypeError: Failed to create UVStreamSink: uv_pipe_open(1) src.windows_c.E.ISDIR
 code: "ERR_INVALID_ARG_TYPE"

      at node:stream:155:85
      at NativeWritablePrototypeWrite (node:stream:3706:141)
      at C:\Users\nafee\.bun\install\global\node_modules\nuekit\src\init.js:66:3

image

@nobkd nobkd added the bug label Feb 18, 2024
@nobkd
Copy link
Collaborator

nobkd commented Feb 18, 2024

I'm pretty sure, that that is a Bun for Windows problem.

I've checked it on Linux and Windows, and the issue only occurs on Windows.
You can try using Bun with WSL for now, or use another package manager instead (and edit the shebang to node), or wait for oven-sh/bun#43 (takes its time)

(I think this issue might be specifically related to oven-sh/bun#8456, but I'm not sure 🤷)

Related issues: #122 and #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants