Skip to content

CLI v5.81.11 crashes immediately: cannot add command 'doctor' #28

Description

@Yetu89

Hey team — latest CLI release appears broken across both Windows and Ubuntu WSL2.

Environment:

  • Windows 11
  • Ubuntu WSL2
  • RTX 5060 8GB
  • Node.js v22.22.2
  • Tested v5.81.11 latest release

Issue:
All CLI commands crash immediately with:

/home/runner/work/p2pnetwork/p2pnetwork/apps/cli/release/sea-bundle.cjs:1763
throw new Error(
^

Error: cannot add command 'doctor' as already have command 'doctor'
at _Command._registerCommand (/home/runner/work/p2pnetwork/p2pnetwork/apps/cli/release/sea-bundle.cjs:1763:17)
at _Command.command (/home/runner/work/p2pnetwork/p2pnetwork/apps/cli/release/sea-bundle.cjs:1358:14)
at /home/runner/work/p2pnetwork/p2pnetwork/apps/cli/release/sea-bundle.cjs:476058:12
at embedderRunCjs (node:internal/main/embedding:89:10)

Node.js v22.22.2

Reproduced with:

  • Windows installer
  • Linux installer
  • Manual 900MB binary download
  • ./aios-cli --help
  • ./_aios-cli --help
  • hyperspace start --agent

Browser node works normally.

Looks like duplicate command registration during CLI startup/init.

Metadata

Metadata

Assignees

No one assigned

    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