英文:
npx create-next-app asks me if I want to use TypeScript, but won't take no for an answer
问题
当我尝试运行 npx create-next-app 时,我得到了以下内容:
我正在尝试完成一些不使用 TypeScript 的培训,但它不允许我选择“否”的答案。我不明白为什么会提出这个问题。
我的另一台电脑没有询问我关于 TypeScript 的问题,所以这一定是一个配置问题。
英文:
I'm getting the following when I try to do an npx create-next-app:
I'm trying to work through some training that doesn't use TypeScript, but it won't let me select No for an answer. I don't understand why it asks the question.
Another PC of mine doesn't ask me about TypeScript, so it must be a configuration issue.
答案1
得分: 6
create-next-app
与许多在控制台中使用 NPM 命令的人所习惯的行为略有不同。当此选项出现时,它不会打开控制台以便您可以按 y
或 n
或其他键输入 - 相反,您必须使用箭头键在高亮显示的“是”和“否”之间切换。按左箭头键使“否”高亮显示,然后按 Enter。
英文:
create-next-app
behaves somewhat differently from what many using NPM commands in the console may be used to. When this option comes up, it doesn't open up the console for input so that you can press y
or n
or something - instead, you have to use the arrow keys to toggle between the highlighted Yes and No. Press the left arrow key so No is highlighted, then press Enter.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论