否/是”,我无法按任何键。。为什么会这样呢?-6ren">
gpt4 book ai didi

"bun x create-next-app" is stuck at the second question(“BUN x CREATE-NEXT-APP”停留在第二个问题上)

转载 作者:bug小助手 更新时间:2023-10-25 13:13:11 26 4
gpt4 key购买 nike



If I try to run the command "bun x create-next-app" in WSL Ubuntu, I get stuck at the second question "Would you like to use TypeScript? › No / Yes" and I cannot press anything.

如果我试图在WSL Ubuntu中运行命令“bun x create-Next-app”,我会被第二个问题卡住:“你想使用TypeScrip吗?>否/是”,我无法按任何键。


Why could that be?

为什么会这样呢?


更多回答
优秀答案推荐

There is an open issue on the bun project already.

关于BUN项目已经有了一个悬而未决的问题。


Find it here: https://github.com/oven-sh/bun/issues/4664

点击此处:https://github.com/oven-sh/bun/issues/4664


This is probably going to be fixed, and is an issue with interactivity.
So instead, you can opt-out from interactivity, and provide everything the CLI needs.

这可能会被修复,这是一个交互性的问题。因此,您可以选择退出交互性,并提供CLI所需的一切。


For example:

例如:


create-next-app <your-project-name> --ts --tailwind --eslint --app --src-dir --use-bun --import-alias "@/*"

Also see: https://nextjs.org/docs/pages/api-reference/create-next-app#non-interactive

另请参阅:https://nextjs.org/docs/pages/api-reference/create-next-app#non-interactive


Update: fix it by doing a bun upgrade to version 1.0.2.

更新:通过将BUN升级到1.0.2版本来修复它。


更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com