Skip to content

Failed to persist session events: Error: Cannot find native binding. #3280

@medet-silent-push

Description

@medet-silent-push

Describe the bug

Hello, I got an issue. When I run copilot in CLI, every model responses like this:

❯ so

✗ Failed to persist session events: Error: Cannot find native binding. npm has a
  bug related to optional dependencies (https://github.com/npm/cli/issues/4828).
  Please try `npm i` again after removing both package-lock.json and node_module
  directory. 

Affected version

1.0.46

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

which copilot - .nvm/versions/node/v20.19.6/bin/copilot
copilot --version - 1.0.46
node --version - 20.19.6

PyCharm ext is still working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions