Next cli Folder creation bug
Unanswered
Pacific cod posted this in #help-forum
Pacific codOP
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
it scaffolded in the old folder which was having the uppercase letters
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
10 Replies
Im assuming your using windows?
Just delete the folder and re-run the command.
Generally windows isnt case sensitive. If you are putting this to report the actual bug, not really the place to do that. You should open an issue on github
You also shouldnt create the folder,
create-next-app will create the folder.@Jboncz Just delete the folder and re-run the command.
Pacific codOP
well i thought it is a bug
It’s a side effect of windows not caring about casing.
Case insensitive unlock most other operating systems.
@Jboncz You also shouldnt create the folder, `create-next-app` will create the folder.
Pacific codOP
i didn't know generally we can just scaffold in the current dir with
./@Jboncz It’s a side effect of windows not caring about casing.
Pacific codOP
Oh
Window's DX is not that good