Skip to content

v6 fails if npm does not exist on the runner (GHE) #234

@sondr3

Description

@sondr3

We're on GHE using our own internal runners and the upgrade from v5 to v6 is causing the following error now. This was caught in a comment in the PR that replaced the bundled pnpm binary, cc @benquarmby for catching this.

Run pnpm/action-setup@v6
Running self-installer...
  Error: spawn npm ENOENT
      at ChildProcess._handle.onexit (node:internal/child_process:286:19)
      at onErrorNT (node:internal/child_process:484:16)
      at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'spawn npm',
    path: 'npm',
    spawnargs: [ 'ci' ]
  }
  Error: Error: spawn npm ENOENT

This is currently breaking all the workflows at our company.

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