Skip to content

Commit

Permalink
Build/Test: Prevent using unsupported NPM versions.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aaronjorbin authored and = committed Nov 4, 2022
1 parent edd945a commit 6c854c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
save-exact = true
engine-strict = true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6c854c1

Please sign in to comment.