opencode icon indicating copy to clipboard operation
opencode copied to clipboard

'OpenCode' inexplicably cannot be found and has been deleted

Open alixiaodi opened this issue 3 weeks ago • 3 comments

Description

My installation command is "npm i-g opencode-ai@latest ”After a while, 'opencode' will prompt that it doesn't exist, and I will reinstall it

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

alixiaodi avatar Jan 13 '26 14:01 alixiaodi

This issue might be a duplicate of existing issues. Please check:

  • #5223: Can't open opencode after install - Similar issue where opencode cannot be found/opened after npm installation
  • #4592: Leftover dot-prefixed temp directory in global node_modules breaks npm -g update on Windows - Describes a cleanup issue that could cause the command to become unavailable
  • #8194: When installing opencode-windows-x64 via npm, it does not install the latest version - Related to npm installation issues causing command unavailability

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 13 '26 14:01 github-actions[bot]

Wdym it will prompt that it doesnt exist?

rekram1-node avatar Jan 13 '26 16:01 rekram1-node

Wdym it will prompt that it doesnt exist?

C:\Users\16973>opencode 'opencode' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

Because I have installed 'nvm', switching between 'node' versions using 'nvm' can cause the above problem

alixiaodi avatar Jan 14 '26 01:01 alixiaodi