Skip to content
Advertisement

npx create-next-app asks me if I want to use TypeScript, but won’t take no for an answer

I’m getting the following when I try to do an npx create-next-app:

Would you like to use TypeScript with this project

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.

Advertisement

Answer

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.

Advertisement