Skip to content

Missing 'hasown' dependency - openclaw command fails to run #45

@renaissancebro

Description

@renaissancebro

Description:

Description

After successfully installing nix-openclaw via home-manager, the openclaw command fails with a missing module error.

Error

Error: Cannot find module 'hasown'
Require stack:

  • /nix/store/.../openclaw-gateway-2026.1.8-2/lib/openclaw/node_modules/.pnpm/form-data@2.5.4/node_modules/form-data/lib/form_data.js

Steps to Reproduce

  1. Set up flake.nix using the agent-first template
  2. Run nix run home-manager/master -- switch --flake .#<username>
  3. Installation completes successfully
  4. Run openclaw --version
  5. Error occurs

System Info

  • NixOS 25.05
  • nix-openclaw commit: 1c70ed9
  • openclaw-gateway version: 2026.1.8-2
  • Node.js: v22.22.0

Expected Behavior

openclaw --version should display the version number.

Actual Behavior

Command fails with MODULE_NOT_FOUND error for 'hasown' package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions