Skip to content

Commit

Permalink
🌱 Require node/npm versions as used in ubi9/nodejs-18 (konveyor#1270)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
sjd78 authored Aug 14, 2023
1 parent ce0f3e1 commit c834061
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"client",
"server"
],
"engines": {
"node": ">=18.14.2",
"npm": ">=9.5.0"
},
"devDependencies": {
"concurrently": "^8.0.1",
"copyfiles": "^2.4.1",
Expand Down

0 comments on commit c834061

Please sign in to comment.