opencode
opencode copied to clipboard
'OpenCode' inexplicably cannot be found and has been deleted
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
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.
Wdym it will prompt that it doesnt exist?
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