-
Notifications
You must be signed in to change notification settings - Fork 101
Description
The command "npm create nuxt@latest" and its derivatives do not correctly recognize projects without a name. I noticed an error when trying to create a project without a name but with additional parameters. For example, in nuxtUI, "npm create nuxt@latest -- -t ui" is used, but the CLI doesn't understand that the project is unnamed and instead creates a project named "-t" without using the correct template.
In this scenario, what I usually do is pass something like "./" in the project name, so it understands that it's undefined and sends it to the expected options.
(Btw, it would be nice if, instead of specifying the project name, I could directly specify the target directory — for example "./", when I want the project to be created in the current folder rather than inside a new one.)