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版本来修复它。
更多回答
我是一名优秀的程序员,十分优秀!