Skip to content

create-nuxt: adding @nuxt/ui during project creation fails with npm ERESOLVE (vue-router 5 vs @nuxt/ui peerOptional ^4.5.0) #1255

@danieldilly

Description

@danieldilly

Fresh repro on Windows.

Steps to reproduce:

  1. Run npm create nuxt@latest .
  2. During the interactive setup, choose to add the @nuxt/ui module
  3. Let the CLI continue with npm

Expected behavior:
The default first-party Nuxt + Nuxt UI setup path should complete successfully.

Actual behavior:
The install fails with npm ERESOLVE.

Relevant error:

  • nuxt@4.4.2 resolves vue-router@5.0.3
  • @nuxt/ui@4.5.1 declares peerOptional vue-router@"^4.5.0"
  • npm aborts dependency resolution

Excerpt:
Could not resolve dependency:
peerOptional vue-router@"^4.5.0" from @nuxt/ui@4.5.1

Environment:

  • OS: Windows
  • Package manager: npm
  • Nuxt created with latest create-nuxt
  • This occurred during the official interactive create flow when selecting Nuxt UI

Notes:
This is a frustrating failure because adding Nuxt UI from the official Nuxt create flow appears to be a default first-party setup path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions