cli icon indicating copy to clipboard operation
cli copied to clipboard

Nuxt Add a title * UI Starter Template command change?

Open peter-chipello opened this issue 7 months ago • 5 comments

Description

The syntax of the command for installing Nuxt Starter Template recently changed to this. However this is not yielding the expected result as it is not pre-populating the nuxt.config file and setting up Nuxt 4 compatibility structure out of the box. Using the command npx nuxi init -t ui appname works as expected. Is the current command syntax in the Installation Docs for the UI 3 Starter Template correct?

peter-chipello avatar Jun 11 '25 23:06 peter-chipello

I'm not sure to really understand the issue here, npx nuxi init -t ui and npm create nuxt@latest -- -t ui does the same (you don't need to select @nuxt/ui when prompted) since it already uses this template: https://github.com/nuxt/starter/tree/ui

benjamincanac avatar Jun 12 '25 10:06 benjamincanac

When using npm create nuxt@latest -- -t ui myapp command it is creating the project in ui folder and not using myapp name. The nuxt.config.ts is not populated with the '@nuxt/ui' module and compatibilityVersion: 4. The app folder structure for Nuxt 4 compatibility is also not being created (see screenshot). Not sure if I am using the command incorrectly?

Using the command npx nuxi init -t ui myapp works as expected. My work laptop has Windows 11 Enterprise installed.

Image

peter-chipello avatar Jun 12 '25 15:06 peter-chipello

I'm not able to reproduce this but I'm not on Windows, which version of NPM are you using?

@danielroe Would you know something about this?

benjamincanac avatar Jul 01 '25 15:07 benjamincanac

this is very likely to be a node issue, perhaps.

what version of npm do you have?

danielroe avatar Jul 01 '25 15:07 danielroe

Thanks for the follow up: npm 10.9.2 node version 22.16.0

Just ran again to confirm still seeing same behavior as described above where it is creating the project in ui folder and not using myapp name:

Image

peter-chipello avatar Jul 01 '25 17:07 peter-chipello