mirror of
https://github.com/obra/superpowers.git
synced 2026-09-25 22:09:05 +00:00
Cannot find module '../../lib/skills-core.js' from 'C:\Users\郭红俊\.config\opencode\plugin\superpowers.js' #232
Labels
No labels
antigravity
automated-issue-report
brainstorming
bug
claude-code
codex
copilot
cursor
documentation
duplicate
enhancement
factory
gemini-cli
good first issue
help wanted
hermes
hooks
invalid
kiro
needs-categorization
needs-rebase-to-dev-branch
needs-repro-case
new-harness
no-obvious-human-review
opencode
pi
plans
pr-template-rules-ignored
question
skill:brainstorming
skill:diagnosing-superpowers
skill:dispatching-parallel-agents
skill:executing-plans
skill:finishing-a-development-branch
skill:receiving-code-review
skill:requesting-code-review
skills
skill:subagent-driven-development
skill:systematic-debugging
skill:test-driven-development
skill:using-git-worktrees
skill:using-superpowers
skill:verification-before-completion
skill:writing-plans
skill:writing-skills
stale
subagents
tdd
trae
triage
upstream-bug
windows
wontfix
worktrees
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
skills/obra-superpowers#232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
win11下opencode安装这个插件后,导致opencode无法启动,用 opencode --log-level DEBUG --print-logs serve 方式启动看日志:
E:\mycode\meerkat> opencode --log-level DEBUG --print-logs serve
INFO 2026-01-05T08:19:53 +212ms service=default version=1.1.2 args=["--log-level","DEBUG","--print-logs","serve"] opencode
INFO 2026-01-05T08:19:53 +1ms service=config path=C:\Users\郭红俊.config\opencode\config.json loading
INFO 2026-01-05T08:19:53 +1ms service=config path=C:\Users\郭红俊.config\opencode\opencode.json loading
INFO 2026-01-05T08:19:53 +1ms service=config path=C:\Users\郭红俊.config\opencode\opencode.jsonc loading
opencode server listening on http://127.0.0.1:4096
INFO 2026-01-05T08:22:10 +137428ms service=server method=GET path=/ request
INFO 2026-01-05T08:22:10 +0ms service=server status=started method=GET path=/ request
INFO 2026-01-05T08:22:10 +0ms service=default directory=E:\mycode\meerkat creating instance
INFO 2026-01-05T08:22:10 +1ms service=project directory=E:\mycode\meerkat fromDirectory
INFO 2026-01-05T08:22:10 +52ms service=default directory=E:\mycode\meerkat bootstrapping
INFO 2026-01-05T08:22:10 +4ms service=bun cmd=["C:\Users\郭红俊\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe","add","@opencode-ai/plugin@1.1.2","--exact"] cwd=C:\Users\郭红俊.config\opencode running
INFO 2026-01-05T08:22:10 +8ms service=plugin path=file:///C:/Users/%E9%83%AD%E7%BA%A2%E4%BF%8A/.config/opencode/plugin/superpowers.js loading plugin
error: Cannot find module '../../lib/skills-core.js' from 'C:\Users\郭红俊.config\opencode\plugin\superpowers.js'
GET - http://127.0.0.1:4096/ failed
INFO 2026-01-05T08:22:10 +109ms service=server method=GET path=/favicon.ico request
INFO 2026-01-05T08:22:10 +0ms service=server status=started method=GET path=/favicon.ico request
GET - /favicon.ico failed
INFO 2026-01-05T08:22:12 +2070ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.2
2 packages installed [2.16s]
stderr=Resolving dependencies
Resolved, downloaded and extracted [8]
Saved lockfile
done
INFO 2026-01-05T08:22:12 +0ms service=bun cmd=["C:\Users\郭红俊\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe","install"] cwd=C:\Users\郭红俊.config\opencode running
INFO 2026-01-05T08:22:12 +19ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [5.00ms]
stderr= done
https://github.com/anomalyco/opencode/issues/6919
经过删除插件确认,superpowers 安装后,会导致opencode无法启动。
启动日志可以看到这条之后就出问题了。
INFO 2026-01-05T10:05:45 +8ms service=plugin path=file:///C:/Users/%E9%83%AD%E7%BA%A2%E4%BF%8A/.config/opencode/plugin/superpowers.js loading plugin
然后界面就:

https://github.com/anomalyco/opencode/issues/6919
经过删除插件确认,superpowers 安装后,会导致opencode无法启动。
启动日志可以看到这条之后就出问题了。
INFO 2026-01-05T10:05:45 +8ms service=plugin path=file:///C:/Users/%E9%83%AD%E7%BA%A2%E4%BF%8A/.config/opencode/plugin/superpowers.js loading plugin
然后界面就:

~/.config/opencode/superpowers/.opencode/plugin/superpowers.js`
这个文件目录找不到 ../../lib/skills-core.js 文件
这个文件修改下面一行就行可以了:
import * as skillsCore from '../superpowers/lib/skills-core.js';
原先是
import * as skillsCore from '../../lib/skills-core.js';
~/.config/opencode/superpowers/.opencode/plugin/superpowers.js`
这个文件目录找不到 ../../lib/skills-core.js 文件
这个文件修改下面一行就行可以了:
import * as skillsCore from '../superpowers/lib/skills-core.js';
原先是
import * as skillsCore from '../../lib/skills-core.js';
But the opencode can not discover any skills from the superpower.
Have you got this issue?
But the opencode can not discover any skills from the superpower.
Have you got this issue?
Root Cause Analysis
This is the canonical tracking issue for OpenCode Windows module resolution failures.
Problem
When following the documented installation:
On Windows, Git Bash's
ln -sfcopies the file instead of creating a symlink. This breaks the relative import in the plugin:When the file is copied to
~/.config/opencode/plugin/superpowers.js, the relative path resolves to:~/.config/lib/skills-core.js❌Instead of:
~/.config/opencode/superpowers/lib/skills-core.js✓Affected Users
This affects all Windows users installing via the documented instructions.
Duplicates
Potential Solutions
mklink /J(directory junction) or clone directlyRelated PRs
Fixed in PR #330.
The fix:
skills-core.js(no more relative imports that break when copied)