opencode安装成功,但启动不了。 #4645

Open
opened 2026-02-16 17:44:54 -05:00 by yindo · 10 comments
Owner

Originally created by @linrb on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

我在windows11系统上,用scoop 安装成功了,但用命令启动不了,是为什么呢?
版本 Windows 11 专业版
版本号 25H2
操作系统版本 26200.7462
体验 Windows 功能体验包 1000.26100.275.0

Image
Originally created by @linrb on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question 我在windows11系统上,用scoop 安装成功了,但用命令启动不了,是为什么呢? 版本 Windows 11 专业版 版本号 25H2 操作系统版本 26200.7462 体验 Windows 功能体验包 1000.26100.275.0 <img width="497" height="131" alt="Image" src="https://github.com/user-attachments/assets/818c7325-b01f-4e9f-a293-be9388f7b214" />
yindo added the windows label 2026-02-16 17:44:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

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

  • #7631: Windows cannot use OpenCode, displaying an error message.
  • #7323: Windows 11 not install app exe
  • #6935: Windows: OpenCode fails to start - Cannot find module '@openauthjs/openauth/pkce'
  • #7148: Cannot start
  • #5223: Can't open opencode after install

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

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #7631: Windows cannot use OpenCode, displaying an error message. - #7323: Windows 11 not install app exe - #6935: Windows: OpenCode fails to start - Cannot find module '@openauthjs/openauth/pkce' - #7148: Cannot start - #5223: Can't open opencode after install Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

English plz?

@rekram1-node commented on GitHub (Jan 10, 2026): English plz?
Author
Owner

@linrb commented on GitHub (Jan 10, 2026):

English plz?

My English is not good. I installed it successfully on my Windows 11 system using Scoop, but I can't launch it by typing the command 'opencode' in the terminal. What could be the reason?

Version: Windows 11 Pro
Version: 25H2
OS Build: 26200.7462
Experience: Windows Feature Experience Pack 1000.26100.275.0

@linrb commented on GitHub (Jan 10, 2026): > English plz? My English is not good. I installed it successfully on my Windows 11 system using Scoop, but I can't launch it by typing the command 'opencode' in the terminal. What could be the reason? Version: Windows 11 Pro Version: 25H2 OS Build: 26200.7462 Experience: Windows Feature Experience Pack 1000.26100.275.0
Author
Owner

@rekram1-node commented on GitHub (Jan 11, 2026):

@linrb do u have a network proxy setup? If so refer to this: https://opencode.ai/docs/network/

Maybe try launching w/ opencode run hello --print-logs see what happens?

@rekram1-node commented on GitHub (Jan 11, 2026): @linrb do u have a network proxy setup? If so refer to this: https://opencode.ai/docs/network/ Maybe try launching w/ `opencode run hello --print-logs` see what happens?
Author
Owner

@linrb commented on GitHub (Jan 11, 2026):

@linrb do u have a network proxy setup? If so refer to this: https://opencode.ai/docs/network/

Maybe try launching w/ opencode run hello --print-logs see what happens?
No network proxy,Running result:
Image

@linrb commented on GitHub (Jan 11, 2026): > [@linrb](https://github.com/linrb) do u have a network proxy setup? If so refer to this: https://opencode.ai/docs/network/ > > Maybe try launching w/ `opencode run hello --print-logs` see what happens? No network proxy,Running result: <img width="1536" height="960" alt="Image" src="https://github.com/user-attachments/assets/7e734c70-0e6d-4ca3-98dd-85e7ed73f169" />
Author
Owner

@rekram1-node commented on GitHub (Jan 11, 2026):

ahh seems like bun is hanging for some reason, if u just let it sit for a bit it should resolve I think there is a bun bug where it will take unusually long times to add a dep

@rekram1-node commented on GitHub (Jan 11, 2026): ahh seems like bun is hanging for some reason, if u just let it sit for a bit it should resolve I think there is a bun bug where it will take unusually long times to add a dep
Author
Owner

@linrb commented on GitHub (Jan 11, 2026):

ahh seems like bun is hanging for some reason, if u just let it sit for a bit it should resolve I think there is a bun bug where it will take unusually long times to add a dep

Yesterday and today, sometimes after running a command I had to wait for ten or twenty minutes, but it still didn't work—I just couldn't start the service. Could you tell me if there are any other ways to fix this?

@linrb commented on GitHub (Jan 11, 2026): > ahh seems like bun is hanging for some reason, if u just let it sit for a bit it should resolve I think there is a bun bug where it will take unusually long times to add a dep Yesterday and today, sometimes after running a command I had to wait for ten or twenty minutes, but it still didn't work—I just couldn't start the service. Could you tell me if there are any other ways to fix this?
Author
Owner

@barhma commented on GitHub (Jan 14, 2026):

npm uninstall opencode-ai

rm -rf ~/.config/opencode/plugin
rm -rf ~/.config/opencode/superpowers
rm -rf C:\Users\live1.local\share\opencode
rm -rf C:\Users\live1.cache\opencode
npm install opencode-ai@latest

mkdir -p C:\Users\live1.config\opencode\plugin
git clone https://github.com/obra/superpowers.git C:\Users\live1.config\opencode\superpowers
New-Item -ItemType SymbolicLink -Target C:\Users\live1.config\opencode\superpowers.opencode\plugin\superpowers.js -Path ~/.config/opencode/plugin/superpowers.js

It s OK!

@barhma commented on GitHub (Jan 14, 2026): >npm uninstall opencode-ai > rm -rf ~/.config/opencode/plugin > rm -rf ~/.config/opencode/superpowers > rm -rf C:\Users\live1\.local\share\opencode > rm -rf C:\Users\live1\.cache\opencode npm install opencode-ai@latest >mkdir -p C:\Users\live1\.config\opencode\plugin\ >git clone https://github.com/obra/superpowers.git C:\Users\live1\.config\opencode\superpowers\ >New-Item -ItemType SymbolicLink -Target C:\Users\live1\.config\opencode\superpowers\.opencode\plugin\superpowers.js -Path ~/.config/opencode/plugin/superpowers.js It s OK!
Author
Owner

@0x3a0 commented on GitHub (Jan 25, 2026):

Question

我在windows11系统上,用scoop 安装成功了,但用命令启动不了,是为什么呢? 版本 Windows 11 专业版 版本号 25H2 操作系统版本 26200.7462 体验 Windows 功能体验包 1000.26100.275.0

Image

解决了吗?我也遇到和你一样的问题

@0x3a0 commented on GitHub (Jan 25, 2026): > ### Question > 我在windows11系统上,用scoop 安装成功了,但用命令启动不了,是为什么呢? 版本 Windows 11 专业版 版本号 25H2 操作系统版本 26200.7462 体验 Windows 功能体验包 1000.26100.275.0 > > <img alt="Image" width="497" height="131" src="https://private-user-images.githubusercontent.com/13359147/534239833-818c7325-b01f-4e9f-a293-be9388f7b214.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkzMzQ4NjUsIm5iZiI6MTc2OTMzNDU2NSwicGF0aCI6Ii8xMzM1OTE0Ny81MzQyMzk4MzMtODE4YzczMjUtYjAxZi00ZTlmLWEyOTMtYmU5Mzg4ZjdiMjE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTI1VDA5NDkyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlMTBiOTNlM2I0NmE2ZDczYWRiYTUxOTE3NjY3ZTg4ODI1N2ZmMmYwNDBlYjkyZWNmMWY4YWIxMjA5Mzk1YTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qhglqY6v5ABWXBE4ClXIv11QjbiwAqEK-vJoMBlSQ_I"> 解决了吗?我也遇到和你一样的问题
Author
Owner

@CStyle1024 commented on GitHub (Jan 30, 2026):

Question

我在windows11系统上,用scoop 安装成功了,但用命令启动不了,是为什么呢? 版本 Windows 11 专业版 版本号 25H2 操作系统版本 26200.7462 体验 Windows 功能体验包 1000.26100.275.0
Image

解决了吗?我也遇到和你一样的问题

遇到相同的问题,问了ai设置了镜像可以启动了:npm config set registry https://registry.npmmirror.com
但输入对话agent一直显示加载没有回复,不知道是不是网络问题

@CStyle1024 commented on GitHub (Jan 30, 2026): > > ### Question > > 我在windows11系统上,用scoop 安装成功了,但用命令启动不了,是为什么呢? 版本 Windows 11 专业版 版本号 25H2 操作系统版本 26200.7462 体验 Windows 功能体验包 1000.26100.275.0 > > <img alt="Image" width="497" height="131" src="https://private-user-images.githubusercontent.com/13359147/534239833-818c7325-b01f-4e9f-a293-be9388f7b214.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkzMzQ4NjUsIm5iZiI6MTc2OTMzNDU2NSwicGF0aCI6Ii8xMzM1OTE0Ny81MzQyMzk4MzMtODE4YzczMjUtYjAxZi00ZTlmLWEyOTMtYmU5Mzg4ZjdiMjE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTI1VDA5NDkyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlMTBiOTNlM2I0NmE2ZDczYWRiYTUxOTE3NjY3ZTg4ODI1N2ZmMmYwNDBlYjkyZWNmMWY4YWIxMjA5Mzk1YTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qhglqY6v5ABWXBE4ClXIv11QjbiwAqEK-vJoMBlSQ_I"> > > 解决了吗?我也遇到和你一样的问题 遇到相同的问题,问了ai设置了镜像可以启动了:npm config set registry https://registry.npmmirror.com 但输入对话agent一直显示加载没有回复,不知道是不是网络问题
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4645