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

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js
Domain
cli, devtools

Research direction

Start with the sfw yarn install entry point and compare its environment with direct yarn install; sfw env | grep -Ei 'yarn|https|ca' shows the injected variables. Done means Yarn 3.2.4 completes installation through sfw without rejecting httpsCaFilePath or reporting no package fetch attempts.

Written by the indexing model from the issue text.

Description

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.

Dominant language
No language data
Stars
271
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SocketDev/sfw-free

All issues in SocketDev/sfw-free

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.