Skip to content

Commit c834061

Browse files
authored
🌱 Require node/npm versions as used in ubi9/nodejs-18 (#1270)
Versions pulled from `registry.access.redhat.com/ubi9/nodejs-18:1-59.1690899127` - node: 18.14.2 - npm: 9.5.0 If the node or npm versions don't match the versions in `package.json`, any `npm install` will flag a warning. The `.npmrc` file setting `engine-strict=true` forces the install version mismatch warnings to become errors. Signed-off-by: Scott J Dickerson <[email protected]>
1 parent ce0f3e1 commit c834061

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"client",
2121
"server"
2222
],
23+
"engines": {
24+
"node": ">=18.14.2",
25+
"npm": ">=9.5.0"
26+
},
2327
"devDependencies": {
2428
"concurrently": "^8.0.1",
2529
"copyfiles": "^2.4.1",

0 commit comments

Comments
 (0)