I wanted to point out a bug/error in the system, but perhaps there’s already a workaround for it. I was just trying to use Gemini CLI via Firebase Studio, but unfortunately, an error occurs during Google authentication, preventing me from proceeding. Here’s the error:
~/web4-sbba-2 (main*) no sandbox (see /docs) gemini-2.5-pro (100% context left)
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at ServerResponse.end (node:_http_outgoing:1047:15)
at Server. (file:///nix/store/jhxlvvbz1nwi4symphxnnv22z87fnigr-gemini-cli-0.1.9/lib/node_modules/@google/gemini-cli/bundle/gemini.js:57608:15)
at Server.emit (node:events:524:28)
at parserOnIncoming (node:_http_server:1141:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
Emitted ‘error’ event on ServerResponse instance at:
at emitErrorNt (node:_http_outgoing:883:9)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: ‘ERR_STREAM_WRITE_AFTER_END’
}
The problem is the version. I always have version 0.1.9 no matter what I try. I have cleared the cache, uninstalled Gemini CLI. I have opened a new workspace, but v0.1.9 always installs. Does this have something to do with the pre-installed version of Gemini CLI?
Thanks, I have attached a video link where I did it on a very fresh blank workspace. I also ran /home/user/.global_modules/bin/gemini --version but forgot it in the video.
The output:
gemini-cli-test-62984493:~/gemini-cli-test$ /home/user/.global_modules/bin/gemini --version
bash: /home/user/.global_modules/bin/gemini: No such file or directory
gemini-cli-test-62984493:~/gemini-cli-test$
When I tried again in the same way, a link appeared in the console and I was able to select my google account through this link. I can now use the Gemini CLI and it offers much more controlled programming. There are features to be added but for now it looks very good even as it is. I hope that Prototyper will reach a controlled structure in this way. After all, whoever can do this can do that.