Skip to content

fix(@angular/cli): disable npm update notifier in package manager host#32624

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:npm-env-vars
Feb 27, 2026
Merged

fix(@angular/cli): disable npm update notifier in package manager host#32624
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:npm-env-vars

Conversation

@alan-agius4
Copy link
Collaborator

The NPM update notifier can prevent child processes from closing promptly, causing them to hang until a timeout occurs (up to 3 minutes). This change disables the update notifier by setting the NO_UPDATE_NOTIFIER and NPM_CONFIG_UPDATE_NOTIFIER environment variables when spawning package manager processes.

The NPM update notifier can prevent child processes from closing promptly, causing them to hang until a timeout occurs (up to 3 minutes). This change disables the update notifier by setting the `NO_UPDATE_NOTIFIER` and `NPM_CONFIG_UPDATE_NOTIFIER` environment variables when spawning package manager processes.
@alan-agius4 alan-agius4 requested a review from clydin February 27, 2026 13:48
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Feb 27, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 27, 2026
@alan-agius4 alan-agius4 merged commit 069e3d3 into angular:main Feb 27, 2026
37 of 38 checks passed
@alan-agius4 alan-agius4 deleted the npm-env-vars branch February 27, 2026 14:27
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants