From 7d20080a0e7f6ed2499039862332b1925f5fd369 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 4 Sep 2023 14:17:19 +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 } --- 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",