Skip to content

@happier-dev/cli@0.1.0 crashes: missing @happier-dev/release-runtime #147

@lucharo

Description

@lucharo

Summary

@happier-dev/cli@0.1.0 (the first non-preview release) crashes immediately on every command with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@happier-dev/release-runtime'
imported from /Users/…/node_modules/@happier-dev/cli/dist/index.mjs

Reproduction

npm install -g @happier-dev/cli@latest   # installs 0.1.0
happier session list                      # crashes
happier daemon --help                     # crashes
happier --version                         # crashes

Cause

package.json lists workspace dependencies at version 0.0.0 that weren't bundled into the npm tarball:

  • @happier-dev/release-runtime: 0.0.0
  • @happier-dev/agents: 0.0.0
  • @happier-dev/cli-common: 0.0.0
  • @happier-dev/protocol: 0.0.0

These are monorepo workspace packages that need to be either bundled into the dist or published as separate npm packages.

Workaround

Downgrade to the last working preview:

npm install -g @happier-dev/cli@0.1.0-preview.1771774953.99369

Environment

  • Node: v20.19.5
  • OS: macOS (Darwin 25.2.0)
  • Previous working version: 0.1.0-preview.1771774953.99369

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