-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Link to the code that reproduces this issue
To Reproduce
npx create-next-app@latest next-test
cd next-test
npm ls
next-test
├── @emnapi/[email protected] extraneous
├── @tailwindcss/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
@emnapi/[email protected] extraneous cannot be removed.
Current vs. Expected behavior
Current:
emnapi/[email protected] shows up as an extraneous dependency immediately after installation.
Running npm uninstall emnapi/[email protected] or other cleanup commands (npm prune, reinstalling, clearing caches) does not remove it.
The dependency remains in node_modules marked as extraneous, causing confusion and potential build/runtime issues.
This extraneous dependency cannot be removed without abandoning Next.js altogether.
Expected:
I expected a clean install with no extraneous dependencies listed post install
Provide environment information
---
**Environment:**
* OS: Debian (latest stable)
* Node.js: v22.x (LTS)
* npm: v10+
* Next.js: 15.5.4 (latest stable)Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response