Skip to content

[求助] CLI 安装不上 #7146

@MuJianxuan

Description

@MuJianxuan

Question

rao@RaodeMacBook-Air-2 ~ % npm install -g opencode-ai
npm error code 1
npm error path /opt/homebrew/lib/node_modules/opencode-ai
npm error command failed
npm error command sh -c bun ./postinstall.mjs || node ./postinstall.mjs
npm error Failed to setup opencode binary: Could not find package opencode-darwin-arm64: Cannot find module 'opencode-darwin-arm64/package.json' from '/opt/homebrew/lib/node_modules/opencode-ai/postinstall.mjs'
npm error Failed to setup opencode binary: Could not find package opencode-darwin-arm64: Cannot find module 'opencode-darwin-arm64/package.json'
npm error Require stack:
npm error - /opt/homebrew/lib/node_modules/opencode-ai/postinstall.mjs
npm error A complete log of this run can be found in: /Users/rao/.npm/_logs/2026-01-07T01_32_25_506Z-debug-0.log
rao@RaodeMacBook-Air-2 ~ %

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions