Skip to content

npm install -g @google/generative-ai/cli fails with ENOENT in Google Cloud Shell #473

@halbayrak75

Description

@halbayrak75

Description of the bug:

Hello,

I am experiencing a persistent ENOENT error when trying to install the Gemini CLI in a Google Cloud Shell environment. This error also occurred on my local macOS machine and inside Docker containers, but it is most surprising that it happens in a clean Cloud Shell instance.

Environment:

  • Google Cloud Shell

Command:

npm install -g @google/generative-ai/cli

### Actual vs expected behavior:


npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/halbayrak75/@google/generative-ai/cli/package.json
npm ERR! errno -2
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/halbayrak75/@google/generative-ai/cli/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 


### Any other information you'd like to share?


_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions