Skip to content

fix: filter npm warn stderr to unblock Node 24 deploys#203

Draft
kb-typeform wants to merge 1 commit intomainfrom
fix/npm-warn-stderr-filter
Draft

fix: filter npm warn stderr to unblock Node 24 deploys#203
kb-typeform wants to merge 1 commit intomainfrom
fix/npm-warn-stderr-filter

Conversation

@kb-typeform
Copy link
Contributor

Yarn 1.x re-injects npm_config_argv into child processes even after unsetting the env var. With npm 10+ (Node 24), this causes 'npm warn Unknown env config' messages on stderr. Jarvis treats any stderr output as a deployment failure, blocking the pipeline.

The existing unset approach only clears vars in the parent shell but cannot prevent Yarn from re-injecting them. This commit adds process substitution to filter 'npm warn' lines from stderr while preserving real error output.

Affects: frontend-deploy-workflow.yml, frontend-pr-workflow.yml

Yarn 1.x re-injects npm_config_argv into child processes even after
unsetting the env var. With npm 10+ (Node 24), this causes 'npm warn
Unknown env config' messages on stderr. Jarvis treats any stderr output
as a deployment failure, blocking the pipeline.

The existing unset approach only clears vars in the parent shell but
cannot prevent Yarn from re-injecting them. This commit adds process
substitution to filter 'npm warn' lines from stderr while preserving
real error output.

Affects: frontend-deploy-workflow.yml, frontend-pr-workflow.yml
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