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

yarn vitepress init error #3841

Open
4 tasks done
JoyZ-nineteen opened this issue Apr 29, 2024 · 2 comments
Open
4 tasks done

yarn vitepress init error #3841

JoyZ-nineteen opened this issue Apr 29, 2024 · 2 comments
Labels
bug Something isn't working upstream Related to the dependencies

Comments

@JoyZ-nineteen
Copy link

Describe the bug

node 版本18.12.1
步骤1: yarn add -D vitepres
步骤2:yarn vitepress init
就开始报错

Reproduction

报错如下:

yarn run v1.22.21
warning package.json: No license field
$ D:\MyConfiguration\yi10.zhang\Desktop\dmeo\node_modules\.bin\vitepress init

T  Welcome to VitePress!
node:internal/errors:484
    ErrorCaptureStackTrace(err);
    ^

SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)
    at new SystemError (node:internal/errors:244:5)
    at new NodeError (node:internal/errors:355:7)
    at new WriteStream (node:tty:93:11)
    at TD.prompt (file:///D:/MyConfiguration/yi10.zhang/Desktop/dmeo/node_modules/vitepress/dist/node/serve-CXVdC751.js:47012:863)
    at te (file:///D:/MyConfiguration/yi10.zhang/Desktop/dmeo/node_modules/vitepress/dist/node/serve-CXVdC751.js:47027:7)
    at root (file:///D:/MyConfiguration/yi10.zhang/Desktop/dmeo/node_modules/vitepress/dist/node/serve-CXVdC751.js:49123:19)
    at he (file:///D:/MyConfiguration/yi10.zhang/Desktop/dmeo/node_modules/vitepress/dist/node/serve-CXVdC751.js:47044:95)
    at init (file:///D:/MyConfiguration/yi10.zhang/Desktop/dmeo/node_modules/vitepress/dist/node/serve-CXVdC751.js:49121:25)
    at file:///D:/MyConfiguration/yi10.zhang/Desktop/dmeo/node_modules/vitepress/dist/node/cli.js:429:3
    at ModuleJob.run (node:internal/modules/esm/module_job:193: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]
}

Node.js v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behavior

希望不报错了

System Info

node -v => 18.12.1
yarn -v => 1.22.21
"vitepress": "^1.1.4"

Additional context

No response

Validations

@JoyZ-nineteen JoyZ-nineteen added the bug: pending triage Maybe a bug, waiting for confirmation label Apr 29, 2024
@brc-dd
Copy link
Member

brc-dd commented Apr 29, 2024

Use some terminal other than git bash / MINGW64

@brc-dd brc-dd added bug Something isn't working and removed bug: pending triage Maybe a bug, waiting for confirmation labels Apr 29, 2024
@brc-dd brc-dd added the upstream Related to the dependencies label Apr 29, 2024
@JoyZ-nineteen
Copy link
Author

Thank you very much

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

No branches or pull requests

2 participants