gemini-cli - 💡(How to fix) Fix Keychain initialization encountered an error: Cannot find module │ │ '../build/Release/keytar.node'

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…

Error Message

│ ℹ Keychain initialization encountered an error: Cannot find module │ │ This is an unexpected error. Please file a bug report using the /bug │ │ Reason: Error: ENAMETOOLONG: name too long, lstat │ │ Error: ENAMETOOLONG: name too long, lstat │

RAW_BUFFERClick to expand / collapse

What happened?

│ │ │ ℹ Keychain initialization encountered an error: Cannot find module │ │ '../build/Release/keytar.node' │ │ Require stack: │ │ - │ │ /usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/ge │ │ mini-cli/node_modules/keytar/lib/keytar.js │ │ ℹ Using FileKeychain fallback for secure storage. │ │ │ │ ℹ Loaded cached credentials. │ │ │ │ ℹ Detected terminal background color: #010409 │ │ │ │ ℹ Detected terminal name: xterm.js(6.1.0-beta.213) │ │ │ │ ℹ Enabling Kitty keyboard protocol │ │ ℹ │ │ ℹ Authenticated via "oauth-personal". │ │ ✖ ========================================= │ │ This is an unexpected error. Please file a bug report using the /bug │ │ tool. │ │ CRITICAL: Unhandled Promise Rejection! │ │ ========================================= │ │ Reason: Error: ENAMETOOLONG: name too long, lstat │ │ '/Users/muhammadaqib/Documents/Personal/KharianAd/kharianad-landing/abc │ │ .com", │ │ "openingBalance": 0, │ │ "balanceSummary": { │ │ "totalInvoiced": 125000, │ │ "totalPaid": 100000, │ │ "totalOutstanding": 25000, │ │ "lastUpdated": "2026-04-05T14:30:00.000Z" │ │ }, │ │ "status": true │ │ } │ │ ], │ │ "page": 1, │ │ "totalResults": 1 │ │ } │ │ │ │ │ │ ### Customer Dropdown (for Orders & Payments) │ │ │ │ **Endpoint:** `GET ' │ │ Stack trace: │ │ Error: ENAMETOOLONG: name too long, lstat │ │ '/Users/muhammadaqib/Documents/Personal/KharianAd/kharianad-landing/abc │ │ .com", │ │ "openingBalance": 0, │ │ "balanceSummary": { │ │ "totalInvoiced": 125000, │ │ "totalPaid": 100000, │ │ "totalOutstanding": 25000, │ │ "lastUpdated": "2026-04-05T14:30:00.000Z" │ │ }, │ │ "status": true │ │ } │ │ ], │ │ "page": 1, │ │ "totalResults": 1 │ │ } │ │ │ │ │ │ ### Customer Dropdown (for Orders & Payments) │ │ │ │ Endpoint: `GET ' │ │ at Module.realpathSync (node:fs:2760:29) │ │ at robustRealpath │ │ (file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@g │ │ oogle/gemini-cli/bundle/chunk-ETUADTWF.js:41905:16) │ │ at resolveToRealPath │ │ (file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@g │ │ oogle/gemini-cli/bundle/chunk-ETUADTWF.js:41896:10) │ │ at checkPermissions │ │ (file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@g │ │ oogle/gemini-cli/bundle/chunk-AQRXALHQ.js:60877:30) │ │ at │ │ file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@go │ │ ogle/gemini-cli/bundle/interactiveCli-XAEPLVZH.js:48651:37 │ │ at │ │ file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@go │ │ ogle/gemini-cli/bundle/interactiveCli-XAEPLVZH.js:37035:7 │ │ at Object.handleSubmit │ │ (file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@g │ │ oogle/gemini-cli/bundle/interactiveCli-XAEPLVZH.js:34562:9) │ │ at │ │ file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@go │ │ ogle/gemini-cli/bundle/interactiveCli-XAEPLVZH.js:37084:20 │ │ at │ │ file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@go │ │ ogle/gemini-cli/bundle/interactiveCli-XAEPLVZH.js:37623:13 │ │ at │ │ file:///usr/local/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@go │ │ ogle/gemini-cli/bundle/chunk-AQRXALHQ.js:51170:15 │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

What did you expect to happen?

I used the /plan and wanted to give the overview of the project lifecycle to enhance the already created landing page.

Client information

  • CLI Version: 0.38.2
  • Git Commit: b0ed611a0
  • Session ID: 8add7cb8-0a68-4e92-93e8-8e64b8fc09b1
  • Operating System: darwin v25.9.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-3-flash-preview
  • Auth Type: oauth-personal
  • Memory Usage: 291.4 MB
  • Terminal Name: xterm.js(6.1.0-beta.213)
  • Terminal Background: #010409
  • Kitty Keyboard Protocol: Supported
  • IDE Client: VS Code

Login information

Google Account

Anything else we need to know?

No response

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

gemini-cli - 💡(How to fix) Fix Keychain initialization encountered an error: Cannot find module │ │ '../build/Release/keytar.node'