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
- Install Yarn 3.2.4 (via Corepack or local .yarn/releases).
- Run:
→ Works
- Run:
→ 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.