hermes - 💡(How to fix) Fix npm: deprecated dependency [email protected] (leaks memory, used via glob → @babel/cli)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

npm install in ui-tui/ emits a deprecation warning for [email protected]:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

Error Message

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

Root Cause

npm install in ui-tui/ emits a deprecation warning for [email protected]:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

Fix Action

Fix / Workaround

  1. Preferred: Update @babel/cli to a version that depends on glob@^8 or later (avoids inflight entirely).
  2. Workaround: Add an overrides entry in ui-tui/package.json to pin glob to ^8 or ^9, and run npm install to regenerate the lockfile.

Code Example

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

---

ui-tui (devDependencies)
  └─ @babel/cli@^7.28.6
       └─ glob@^7.2.0  (resolved: 7.2.3)
            └─ inflight@^1.0.4  (resolved: 1.0.6)   ← deprecated, leaks memory

---

// ui-tui/package.json
"overrides": {
  "glob": "^8"
}
RAW_BUFFERClick to expand / collapse

Summary

npm install in ui-tui/ emits a deprecation warning for [email protected]:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

Dependency Chain

ui-tui (devDependencies)
  └─ @babel/cli@^7.28.6
       └─ glob@^7.2.0  (resolved: 7.2.3)
            └─ inflight@^1.0.4  (resolved: 1.0.6)   ← deprecated, leaks memory

Impact

  • Build-time only (not in production runtime)
  • inflight is explicitly unsupported upstream and leaks memory during repeated npm install / build runs
  • The glob@7 series depends on inflight; glob@8+ replaced it with lru-cache

Suggested Fix

  1. Preferred: Update @babel/cli to a version that depends on glob@^8 or later (avoids inflight entirely).
  2. Workaround: Add an overrides entry in ui-tui/package.json to pin glob to ^8 or ^9, and run npm install to regenerate the lockfile.
// ui-tui/package.json
"overrides": {
  "glob": "^8"
}

Note: @babel/[email protected] is the current latest; if it still pins glob@^7, the override approach is the immediate fix. A future @babel/cli release may resolve this upstream.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING