-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Environment
Operating System: MacOS Sequoia 15.1
Nuxt Version: latest/4.3.1
Node Version: 24.13.1 (LTS)
Package Manager: npm@11.8.0
Reproduction
An empty directory, nvm with only the LTS version of node installed (24.13.1), npm installed using nvm node version.
Describe the bug
When trying to create a new Nuxt project by running:
npm create nuxt@latest <project-name>
I follow the prompts:
(base) user@MacBook-Pro-3 Project % npm create nuxt@latest Project
> npx
> "create-nuxt" Project
.d$b.
i$$A$$L .d$b
.$$F` `$$L.$$A$$.
j$$' `4$$:` `$$.
j$$' .4$: `$$.
j$$` .$$: `4$L
:$$:____.d$$: _____.:$$:
`4$$$$$$$$P` .i$$$$$$$$P`
┌ Welcome to Nuxt!
│
◇ Templates loaded
│
◇ Which template would you like to use?
│ minimal – Minimal setup for Nuxt 4
│
◇ Creating project in Project
│
◇ Downloaded minimal template
│
◇ Which package manager would you like to use?
│ npm
│
◇ Initialize git repository?
│ No
│
◇ Dependencies installed
│
◇ Would you like to browse and install modules?
When prompted with:
Would you like to browse and install modules?
I select yes, but if I try and install any module it returns the following:
◇ Would you like to browse and install modules?
│ Yes
│
◇ Modules loaded
│
│
◇ Search and select modules:
│ 1 items selected
│
● Resolved @nuxt/ui, adding module...
│
● Installing @nuxt/ui@4.4.0 as a dependency
added 185 packages, removed 1 package, and audited 783 packages in 10s
206 packages are looking for funding
run `npm fund` for details
4 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
│
■ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/user/Project/Project/node_modules/@nuxt/ui/package.json
│
◇ Install failed for @nuxt/ui@4.4.0. Do you want to continue adding the module to nuxt.config?
│ Yes
│
● Adding @nuxt/ui to the modules
ℹ Nuxt Icon server bundle mode is set to local 5:07:48 PM
│
◆ Types generated in Project/.nuxt.
│
└ ✨ Nuxt project has been created with the minimal template.
╭── 👉 Next steps ───╮
│ │
│ › cd Project │
│ › npm run dev │
│ │
╰────────────────────╯
If I choose not to add the module to nuxt.config:
◇ Install failed for @nuxt/ui@4.4.0. Do you want to continue adding the module to nuxt.config?
│ No
│
◆ Types generated in Project/.nuxt.
│
└ ✨ Nuxt project has been created with the minimal template.
╭── 👉 Next steps ───╮
│ │
│ › cd Project │
│ › npm run dev │
│ │
╰────────────────────╯
Additional context
I attempted several fixes such as running npm update, trying an older version of node, uninstalling and reinstalling npm and node, clearing npm cache, deleting the '.npm' folder from my user directory, using pnpm instead. Nothing worked. Maybe its not a bug but I never had this issue on older versions of Nuxt.