Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Cannot create Sveltekit app - ERR_TTY_INIT_FAILED uv_tty_init returned EBADF (bad file descriptor)

$
0
0

When I run the recommended $ npm create svelte@latest myapp, I get the following error:

 Welcome to SvelteKit!node:internal/errors:490    ErrorCaptureStackTrace(err);    ^SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)    at new SystemError (node:internal/errors:250:5)    at new NodeError (node:internal/errors:361:7)    at new WriteStream (node:tty:93:11)    at ED.prompt (file:///C:/Users/Skylan/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/@clack/core/dist/index.mjs:9:693)    at Module.ee (file:///C:/Users/Skylan/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/@clack/prompts/dist/index.mjs:28:7)    at template (file:///C:/Users/Skylan/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/create-svelte/bin.js:48:6)    at Module.$e (file:///C:/Users/Skylan/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/@clack/prompts/dist/index.mjs:80:345)    at file:///C:/Users/Skylan/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/create-svelte/bin.js:45:25    at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {  code: 'ERR_TTY_INIT_FAILED',  info: {    errno: -4083,    code: 'EBADF',    message: 'bad file descriptor',    syscall: 'uv_tty_init'  },  errno: [Getter/Setter],  syscall: [Getter/Setter]}

Full log

It looks liek the error happens AFTER the create?

34 http fetch GET 200 https://registry.npmjs.org/create-svelte 144ms (cache revalidated)35 timing arborist:ctor Completed in 0ms36 timing arborist:ctor Completed in 1ms37 timing command:create Completed in 299ms38 verbose stack Error: command failed38 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:53:27)38 verbose stack     at ChildProcess.emit (node:events:513:28)38 verbose stack     at maybeClose (node:internal/child_process:1091:16)38 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)

I've tried updating/reinstalling node, there aren't really any googles or answers I found dealing with npm create svelte


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>