Skip to content
New issue

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

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

Already on GitHub? # to your account

Create svelte latest command not working #8595

Closed
sankaran-t opened this issue May 17, 2023 · 4 comments
Closed

Create svelte latest command not working #8595

sankaran-t opened this issue May 17, 2023 · 4 comments

Comments

@sankaran-t
Copy link

Describe the bug

When i try to run the command npm create svelte@latest my-app i getting below error

create-svelte version 4.2.0

T Welcome to SvelteKit!
node:internal/errors:464
ErrorCaptureStackTrace(err);
^

SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)

Reproduction

create-svelte version 4.2.0

T Welcome to SvelteKit!
node:internal/errors:464
ErrorCaptureStackTrace(err);
^

SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)

Logs

Welcome to SvelteKit!
node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)
    at new SystemError (node:internal/errors:233:5)
    at new NodeError (node:internal/errors:336:7)
    at new WriteStream (node:tty:94:11)
    at sD.prompt (file:///C:/Users/sankaran/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/@clack/core/dist/index.mjs:9:693)
    at Module.Q (file:///C:/Users/sankaran/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/@clack/prompts/dist/index.mjs:22:7)
    at file:///C:/Users/sankaran/AppData/Local/npm-cache/_npx/50a6160ffc29bafc/node_modules/create-svelte/bin.js:33:25
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
    at async loadESM (node:internal/process/esm_loader:88:5) {
  code: 'ERR_TTY_INIT_FAILED',
  info: {
    errno: -4083,
    code: 'EBADF',
    message: 'bad file descriptor',
    syscall: 'uv_tty_init'
  },
  errno: [Getter/Setter],
  syscall: [Getter/Setter]
}
npm ERR! code 1
npm ERR! path C:\sankaran\official\projects\ayata
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-svelte "my-app"

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\sankaran\AppData\Local\npm-cache\_logs\2023-05-17T13_30_55_446Z-debug-0.log

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 16.17 GB / 31.74 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.35)
    Internet Explorer: 11.0.22621.1

Severity

blocking all usage of svelte

@Conduitry
Copy link
Member

What terminal are you using? Searching for that error message turned up this question on SO https://stackoverflow.com/questions/75750730

@raunakhajela
Copy link

I got the same error in Windows but it worked when I ran cmd as administrator outside vs code.

@af4oz
Copy link

af4oz commented May 24, 2023

Was using Git Bash on windows, It worked on Command Prompt app.

@dummdidumm
Copy link
Member

Closing since it's now npx sv create - also, this isn't something under control of Svelte

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

No branches or pull requests

5 participants