Skip to content

fix: remove deprecated --ignore-prepublish from npm install#3709

Closed
ravvdevv wants to merge 1 commit into
pre-commit:mainfrom
ravvdevv:fix/remove-deprecated-ignore-prepublish
Closed

fix: remove deprecated --ignore-prepublish from npm install#3709
ravvdevv wants to merge 1 commit into
pre-commit:mainfrom
ravvdevv:fix/remove-deprecated-ignore-prepublish

Conversation

@ravvdevv

Copy link
Copy Markdown

Summary

Removes the deprecated --ignore-prepublish option from the npm install command in the node language installer.

Problem

The --ignore-prepublish option was deprecated in npm 8 and now produces a warning:

Unknown cli config "--ignore-prepublish". This will stop working in the next major version of npm.

This causes CI failures in environments that treat npm warnings as errors (e.g., GitLab CI).

Changes

  • pre_commit/languages/node.py: Removed --ignore-prepublish from local_install_cmd

Testing

  • The change is a single flag removal from a tuple
  • The remaining flags (--include=dev, --include=prod, --no-progress, --no-save) are unaffected

Fixes #3517

The --ignore-prepublish option has been deprecated in npm 8 and
now produces a warning: 'Unknown cli config "--ignore-prepublish".
This will stop working in the next major version of npm.'

Remove it from the node language installer to prevent CI failures
in environments that treat npm warnings as errors.

Fixes pre-commit#3517
@asottile

Copy link
Copy Markdown
Member

ai slop is not acceptable

@asottile asottile closed this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Remove usage of deprecated npm install option --ignore-prepublish

2 participants