Skip to content

[DOCS] Missing mention of breaking change lifecycle script block in [email protected] release notes #9750

Closed

Description

@MikeMcC399

Situation

The release notes for [email protected] and the CHANGELOG 12.0.0 entry contain no mention of the breaking change to block lifecycle scripts by default.


In [email protected], a default npm configuration results in the following warning when a dependency with a lifecycle script is installed. The lifecycle script is executed:

npm warn allow-scripts 1 package has install scripts not yet covered by allowScripts:


In [email protected] this changes to a block by default. The lifecycle script is not executed. This is a breaking change:

npm warn install-scripts 1 package had install scripts blocked because they are not covered by allowScripts:


Suggestion

Add the breaking change for [email protected] to the release notes, corresponding to the warning:

npm warn install-scripts 1 package had install scripts blocked because they are not covered by allowScripts:

Activity

  1. changed the title [-]Missing mention of breaking change lifecycle script block in [email protected] release notes[/-] [+][DOCS] Missing mention of breaking change lifecycle script block in [email protected] release notes[/+] on Jul 13, 2026
  2. prayag0one4 commented on Jul 14, 2026

    @prayag0one4

    I'd like to work on this documentation update and can prepare a PR for it.

  3. MikeMcC399 commented on Jul 14, 2026

    @MikeMcC399
    ContributorAuthor

    @prayag0one4

    I'd like to work on this documentation update and can prepare a PR for it.

    You need to have write access to the repo to change https://github.com/npm/cli/releases/tag/v12.0.0 so submitting a PR will not resolve the whole issue. I suggest that you should leave the resolution to a core maintainer of the repo.

  4. prayag0one4 commented on Jul 14, 2026

    @prayag0one4

    Thanks for the clarification.

    Would it still be useful to keep the changelog update in the repository as a separate contribution, with the GitHub release notes being updated manually by a maintainer, or would you prefer to handle both changes together internally?

  5. MikeMcC399 commented on Jul 14, 2026

    @MikeMcC399
    ContributorAuthor

    I was just the person who raised the original issue. I'm not a maintainer of the repo, so I can't answer on their behalf.

  6. prayag0one4 commented on Jul 14, 2026

    @prayag0one4

    Thanks for the clarification, @MikeMcC399! I'll wait for feedback from the npm maintainers on whether they'd prefer to handle both changes internally or keep the changelog update as a separate contribution.

  7. MikeMcC399 commented on Jul 15, 2026

    @MikeMcC399
    ContributorAuthor

    For whoever writes any update, I would suggest describing the install-scripts sequence more completely.

    In a project, npm install-scripts approve can only be used after npm install (or other related CLI commands that install dependencies) have been run. To actually run the enabled lifecycle scripts locally once they've been approved, npm rebuild can be conveniently executed.

  8. MikeMcC399 commented on Jul 24, 2026

    @MikeMcC399
    ContributorAuthor

    @JamieMagee

    Are you aware of this issue?

  9. added a commit that references this issue on Aug 3, 2026
    bea9066
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions