sfw yarn fails on Yarn 3.2.4 with “Unrecognized configuration setting: httpsCaFilePath (in <environment>)”
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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
- Install Yarn 3.2.4 (via Corepack or local .yarn/releases).
- Run:
yarn install
→ Works
- 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SocketDev/sfw-free
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in SocketDev/sfw-free
Similar issues
-
manually bump balena-preload to ^19.0.6Possibly taken @shaunmulligan claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
balena-io/balena-cli#3200 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ranxianglei/billion-context#7858 ·
Maintainers usually reply within 1 day
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainers usually reply within 1 day