Skip to content

"npm create nuxt@latest" and unnamed projects #1125

@DarlanPrado

Description

@DarlanPrado

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions