Skip to content

FIle not defined #12170

@ProfesorekJajo

Description

@ProfesorekJajo

What happened?

I installed gemini-cli using npm (npm install -g @google/gemini-cli) went to the folder i where i wanted to run it, and got an error message

`/usr/local/lib/node_modules/@google/gemini-cli/node_modules/undici/lib/web/webidl/index.js:531
webidl.is.File = webidl.util.MakeTypeAssertion(File)
^

ReferenceError: File is not defined
at Object. (/usr/local/lib/node_modules/@google/gemini-cli/node_modules/undici/lib/web/webidl/index.js:531:48)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/usr/local/lib/node_modules/@google/gemini-cli/node_modules/undici/lib/web/fetch/util.js:12:20)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)

Node.js v18.19.1
`

What did you expect to happen?

I wanted to test it for myself if it could improve my productivity.

Client information

For obvious reasons i cant run the about command. Im running ubuntu 24.04.3 and i have Node.js v18.19.1

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingstatus/need-triageThis issue needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions