Make WordPress Core

Changeset 54124


Ignore:
Timestamp:
09/11/2022 09:52:10 PM (2 years ago)
Author:
jorbin
Message:

Build/Test: Prevent using unsupported NPM versions.

Using NPM 7+ currently causes a number of issues. In order to improve developer experience, we should prevent a developer from going down the road of using incompatible engines.

See also: https://github.com/WordPress/gutenberg/pull/29204 and https://github.com/WordPress/gutenberg/pull/23600.

Props rcorrales.
Fixes #56547.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.npmrc

    r49978 r54124  
    11save-exact = true
     2engine-strict = true
  • trunk/package.json

    r53929 r54124  
    99    "engines": {
    1010        "node": ">=14.15.0",
    11         "npm": ">=6.14.8"
     11        "npm": ">=6.14.8 <7"
    1212    },
    1313    "author": "The WordPress Contributors",
Note: See TracChangeset for help on using the changeset viewer.