First i created folder with uppercase
then i tried to scaffold nextjs app with "." to scaffold in the current directory, it threw "Can't create app with upper case letter because of npm registry issue".
then i did:
note: i didn't deleted the previous old folder with same name
cd ..
npx create-next-app@latest
name of the project: < same as before but all lowercase >
it scaffolded in the old folder which was having the uppercase letters