Skip to content

Chromatic CLI v16.0.0 - CI Error "spawn ps ENOENT" #1257

@byjokese

Description

@byjokese

Chromatic Issues
When using the chromatic CLI v16 on CI (Using Node 22), is falling with following error:

Chromatic CLI v16.0.0
https://www.chromatic.com/docs/cli
Authenticating with Chromatic
    → Connecting to https://index.chromatic.com/
Using custom npm registry: https://nuget.xxxxxxxx.com/repository/npm-release/
Authenticated with Chromatic
    → Using project token '********0b48'
Retrieving git information
Error: spawn ps ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn ps',
  path: 'ps',
  spawnargs: [ '-o', 'pid', '--no-headers', '--ppid', 695 ]
}

From our command:

Error: Command failed: npx chromatic --project-token [MASKED] -d="dist/storybook/storybook" --only-changed --untraced "./!(apps)/**,./!(libs)/**" --zip --exit-zero-on-changes --auto-accept-changes develop --ci}

Metadata

Metadata

Assignees

Labels

CLIEmpathyhas workaroundTracking: This issue has an available workaroundneeds triageTracking: Issue needs confirmation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions