How to fix npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found: package-name in npm
npmBEGINNERLOWUpdated Dec 2, 2025ยท 121 views
A bundled dependency listed cannot be found in dependencies. Add it to dependencies or remove from bundledDependencies.
Quick fix
Fixes npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found: package-name
- Ensure bundled packages exist in dependencies
- Install before packing
- Pack/publish again
npm โ error
# npm ERR! code EBUNDLEDNOTFOUNDnpm ERR! Bundled dependency not found: package-nanpm ERR! code EBUNDLEDNOTFOUNDnpm ERR! Bundled dependency not found: package-name
What this error means
When bundledDependencies references a package not present in dependencies (or missing on disk), npm fails with EBUNDLEDNOTFOUND.
Typical symptoms
- npm publish fails with EBUNDLEDNOTFOUND
- Bundled package missing from dependencies or node_modules
Common causes
- bundledDependencies lists a package not in dependencies
- Package not installed before packing
How to fix "npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found: package-name"
1Ensure bundled packages exist in dependencies
Add the package to dependencies with a valid version.
2Install before packing
Run npm install so node_modules contains the bundled packages before npm pack/publish.
3Pack/publish again
Verify with npm pack --dry-run, then publish.
Advanced notes
Bundling copies dependencies into the tarball. Keep the list accurate and minimal to reduce package size.
Frequently asked questions
- What does "npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found:" mean?
- When bundledDependencies references a package not present in dependencies (or missing on disk), npm fails with EBUNDLEDNOTFOUND.
- How do I fix "npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found:"?
- A bundled dependency listed cannot be found in dependencies. Add it to dependencies or remove from bundledDependencies.
- What causes "npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found:"?
- bundledDependencies lists a package not in dependencies Package not installed before packing
- Is the "npm ERR! code EBUNDLEDNOTFOUND npm ERR! Bundled dependency not found:" error serious?
- It is a low-severity error โ more of a blocker than a risk. The steps above resolve it.
Official resources & further reading
- ๐npm Official Documentation
- ๐npm Docs: bundledDependencies(Official Docs)
- ๐ฌStack Overflow: bundledDependencies(Stack Overflow)
- ๐