8000 Add minimum npm & node version requirements · 0xNull-ops/javascript-exercises@c79a878 · GitHub
[go: up one dir, main page]

Skip to content

Commit c79a878

Browse files
committed
Add minimum npm & node version requirements
This change will prevent any old node or npm version from installing any packages. With this, npm will throw an error and exit immediately. This is to prevent the accidental use of unsupported versions which might cause some issues that are hard to pin-point.
1 parent 2154dce commit c79a878

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.npmrc

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

package-lock.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"jest-cli": "^29.6.4",
2323
"plop": "^4.0.1"
2424
},
25+
"engines": {
26+
"npm": ">=8.5.5",
27+
"node": ">=18.0.0"
28+
},
2529
"scripts": {
2630
"test": "jest",
2731
"generate": "plop"

0 commit comments

Comments
 (0)
0