Skip to content

strip inherited npm_* env vars before nested npx calls#88

Merged
developersdigest merged 1 commit intomainfrom
firecrawl-build-skills
Apr 10, 2026
Merged

strip inherited npm_* env vars before nested npx calls#88
developersdigest merged 1 commit intomainfrom
firecrawl-build-skills

Conversation

@developersdigest
Copy link
Copy Markdown
Member

when this cli is launched via 'npx -y firecrawl-cli@VERSION', npm injects npm_command/npm_lifecycle_event/npm_execpath/INIT_CWD into the process env. those vars leak into nested execSync('npx -y skills add ...') calls and cause the loop's second iteration to silently exit after the first install completes — published 1.14.0 only installs from firecrawl/cli even though SKILL_REPOS contains both repos.

cleanNpmEnv() in skills-install.ts strips those vars; init.ts and setup.ts pass it as the env to every nested execSync. added a regression test that primes process.env with the leaking vars and asserts every install call sees a clean env. bumped to 1.14.1.

when this cli is launched via 'npx -y firecrawl-cli@VERSION', npm injects
npm_command/npm_lifecycle_event/npm_execpath/INIT_CWD into the process
env. those vars leak into nested execSync('npx -y skills add ...') calls
and cause the loop's second iteration to silently exit after the first
install completes — published 1.14.0 only installs from firecrawl/cli
even though SKILL_REPOS contains both repos.

cleanNpmEnv() in skills-install.ts strips those vars; init.ts and
setup.ts pass it as the env to every nested execSync. added a
regression test that primes process.env with the leaking vars and
asserts every install call sees a clean env. bumped to 1.14.1.
@developersdigest developersdigest merged commit 6b98da3 into main Apr 10, 2026
4 checks passed
@developersdigest developersdigest deleted the firecrawl-build-skills branch April 10, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant