Skip to content

Gemini CLI fails on Node.js v20+ with "URL.parse is not a function" #13615

@VentureUp1983

Description

@VentureUp1983

What happened?

The Gemini CLI (@google/gemini-cli) version 0.17.0 fails when running commands on Node.js versions 20 and higher
This seems to be caused by the use of the deprecated and removed URL.parse function from the legacy url module
The package's documentation states it requires Node.js v20+, which is contradictory to this behavior.

The command fails with the following error message: █
URL.parse is not a function

Environment
6
7 * Node.js Version: v20.12.2
8 * Gemini CLI Version: 0.17.0
9 * Operating System: Windows

What did you expect to happen?

The command should execute successfully without errors. █
20

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitypriority/p0Critical and urgent (e.g., critical security vulnerability, major breakage).

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions