From 2a10bd66ec7de7985a5d1913a8cc4d7e14b6ce78 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 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 14fd0af..107a1d3 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "repository": "git@github.com:cockpit/starter-kit.git", "author": "", "license": "LGPL-2.1", + "engines": { + "node": ">= 16" + }, "scripts": { "watch": "ESBUILD_WATCH='true' ./build.js", "build": "./build.js",