Describe the bug
Copilot 1.0.46 has blocker issue. On opening copilot and typign any msg
✗ Failed to persist session events: Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
✗ Failed to persist session events: Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
● Response was interrupted due to a server error. Retrying...
● Response was interrupted due to a server error. Retrying...
Affected version
1.0.46
Steps to reproduce the behavior
Just upgrade in copilot CLI
This once happens wont work in any copilot version.
Fix :
nvm install 24
nvm use 24
Update Node to 24 and try, it should work.
Else :
Workaround is to uninstall compeletely and downgrade to 1.0.45 and then create new custom .copilot and .cache folder. And point copilot to use these.
XDG_CACHE_HOME="$HOME/.cache_copilot_test"
COPILOT_HOME="$HOME/.copilot_npm_fresh"
copilot --no-auto-update --banner
Expected behavior
No response
Additional context
No response
Describe the bug
✗ Failed to persist session events: Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try
npm iagain after removing both package-lock.json and node_modules directory.✗ Failed to persist session events: Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try
npm iagain after removing both package-lock.json and node_modules directory.● Response was interrupted due to a server error. Retrying...
● Response was interrupted due to a server error. Retrying...
Affected version
1.0.46
Steps to reproduce the behavior
Just upgrade in copilot CLI
This once happens wont work in any copilot version.
Fix :
nvm install 24
nvm use 24
Update Node to 24 and try, it should work.
Else :
Workaround is to uninstall compeletely and downgrade to 1.0.45 and then create new custom .copilot and .cache folder. And point copilot to use these.
XDG_CACHE_HOME="$HOME/.cache_copilot_test"
COPILOT_HOME="$HOME/.copilot_npm_fresh"
copilot --no-auto-update --banner
Expected behavior
No response
Additional context
No response