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.



git-svn-id: https://develop.svn.wordpress.org/trunk@54124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2022-09-11 21:52:10 +00:00
parent a400e99225
commit db0290b042
2 changed files with 2 additions and 1 deletions

1
.npmrc
View File

@ -1 +1,2 @@
save-exact = true
engine-strict = true

View File

@ -8,7 +8,7 @@
},
"engines": {
"node": ">=14.15.0",
"npm": ">=6.14.8"
"npm": ">=6.14.8 <7"
},
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",