Skip to content

sfw yarn fails on Yarn 3.2.4 with “Unrecognized configuration setting: httpsCaFilePath (in <environment>)” #23

@balg

Description

@balg

When running sfw yarn install with Yarn 3.2.4, Yarn immediately exits with:

Usage Error: Unrecognized or legacy configuration settings found: httpsCaFilePath
(in <environment>)

This happens only when Yarn is invoked through sfw.
Running yarn install directly works without error.

It appears that sfw is injecting an environment variable that maps to the Yarn config key httpsCaFilePath, which is only supported by Yarn 4+, not Yarn 3.x.
As a result, Yarn 3 exits early, and Socket Firewall observes “no package fetch attempts.”

Environment

  • macOS
  • Node version: v22.17.1
  • Yarn version: 3.2.4
  • SFW version: Socket Firewall Free, version 1.1.2

Steps to Reproduce

  1. Install Yarn 3.2.4 (via Corepack or local .yarn/releases).
  2. Run:
yarn install

→ Works

  1. Run:
sfw yarn install

→ Fails with:

Usage Error: Unrecognized or legacy configuration settings found: httpsCaFilePath
(in <environment>)

Optional: running sfw env | grep -Ei 'yarn|https|ca' shows that sfw injects environment variables that map to Yarn's httpsCaFilePath config.

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