Skip to content

Failed to get version of local binary: Error: spawnSync #14

@PaulRBerg

Description

@PaulRBerg

This is how I use it in my CI workflow:

jobs:
  ci:
    runs-on: "ubuntu-latest"
    steps:
      - name: "Check out the repo"
        uses: "actions/checkout@v4"

      - name: "Set up Anchor CLI, Solana CLI, and Node.js"
        uses: "metadaoproject/setup-anchor@v3.1"
        with:
          anchor-version: "0.31.1"
          node-version: "23"
          solana-cli-version: "2.1.21"

      - run: "anchor build"

Getting this error:

Failed to get version of local binary: Error: spawnSync /opt/hostedtoolcache/node/23.11.1/x64/lib/node_modules/@coral-xyz/anchor-cli/anchor EACCES
Trying globally installed anchor.
Could not find globally installed anchor, install with cargo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions