From c8340610b0a71e4b596cf8bf0ec5477857c22a77 Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Mon, 14 Aug 2023 13:17:03 -0400 Subject: [PATCH] :seedling: 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 --- .npmrc | 1 + package.json | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..b6f27f135 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package.json b/package.json index ae77c3350..efa6ffcff 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,10 @@ "client", "server" ], + "engines": { + "node": ">=18.14.2", + "npm": ">=9.5.0" + }, "devDependencies": { "concurrently": "^8.0.1", "copyfiles": "^2.4.1",