Skip to content

Commit db0290b

Browse files
committed
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: WordPress/gutenberg#29204 and WordPress/gutenberg#23600. Props rcorrales. Fixes #56547. git-svn-id: https://develop.svn.wordpress.org/trunk@54124 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a400e99 commit db0290b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
save-exact = true
2+
engine-strict = true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"engines": {
1010
"node": ">=14.15.0",
11-
"npm": ">=6.14.8"
11+
"npm": ">=6.14.8 <7"
1212
},
1313
"author": "The WordPress Contributors",
1414
"license": "GPL-2.0-or-later",

0 commit comments

Comments
 (0)