Skip to content

npx aimock fails #160

@jantimon

Description

@jantimon

On OS-X running aimock through the bin (e.g. bunx aimock npx aimock) after installing it just exits 0 instantly and never starts the server

the only workaround is node ./node_modules/@copilotkit/aimock/dist/aimock-cli.js --config ./aimock.json

it looks like the entry point guard in dist/aimock-cli.js does scriptName.endsWith("aimock-cli.js") on process.argv[1] but when you go through the bin symlink or an npx/bunx shim argv[1] is the symlink/shim path (ending in aimock) so the check is false and runAimockCli() never runs

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