Home > database >  How to create a next.js app directly in the current folder
How to create a next.js app directly in the current folder

Time:05-11

How I can create next-app in the current folder?

I tried:

npx create-next-app@latest .  --ts --use-npm

But I get error:

Could not create a project called "folderName" because of npm naming restrictions:
 * name can no longer contain capital letters

CodePudding user response:

if you are using linux or mac try this

npx create-next-app@latest ./ --ts --use-npm

it is working for me on both linux and mac

  • Related