Skip to content

Error after installing in standalone mode when trying to install packages with a CLI globally - This: not found #277

Description

@glektarssza

While playing around with the action, I ran into a strange issue.

I am trying to install the cspell package globally to use it as an automated spell checker and also have support for various package managers (if possible) since the idea is that the workflow in question will later become part of a template repository for my other projects to pull from.

Since GitHub-hosted runners may not have a compatible version of NodeJS installed on them for pnpm, I decided installing in standalone mode was a good idea and ran into this weird situation. I'm not sure if this is the action's fault or pnpm's fault. If it's the latter, let me know and I'll file a bug over there instead.

Link to the relevant log line of the failing workflow job where I saw this behaviour: https://github.com/glektarssza/shellscript-lib/actions/runs/29330520079/job/87077869884#step:8:48

Log snippet for ease of reference:

pnpm install -g cspell \
  @cspell/dict-cspell-bundle @cspell/dict-java @cspell/dict-fonts \
  @cspell/dict-public-licenses @cspell/dict-gaming-terms \
  @cspell/dict-companies @cspell/dict-git @cspell/dict-software-terms;
  shell: /usr/bin/bash -e {0}
  env:
    GITHUB_TOKEN: ***
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
/home/runner/setup-pnpm/node_modules/.bin/bin/../global/v11/955-19f607a6675/node_modules/@pnpm/exe/pnpm: 1: This: not found
Error: Process completed with exit code 127.

Failing workflow file link: https://github.com/glektarssza/shellscript-lib/actions/runs/29330520079/workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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