From 4128c04f47f8bc46e94f4c3f4dbc3f9e723f5be9 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 4 Sep 2023 15:00:09 +0200 Subject: [PATCH] package.json: document the required nodejs version To avoid issues about not being able to run make / npm install. This sadly only produces a warning, but that hint might be good enough. ``` $ npm install npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: undefined, npm WARN EBADENGINE required: { node: '>= 18' }, npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '9.8.1' } npm WARN EBADENGINE } ``` Fixes #693 (cherry picked from commit 2a10bd66ec7de7985a5d1913a8cc4d7e14b6ce78) --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index f194442..148e649 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "repository": "git@github.com:Scribery/cockpit-session-recording.git", "author": "", "license": "LGPL-2.1", + "engines": { + "node": ">= 16" + }, "scripts": { "watch": "ESBUILD_WATCH='true' ./build.js", "build": "./build.js",