From 2ffe541063581eab9afefd630ca405a506ada5d6 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 3 Feb 2023 23:33:03 +0800 Subject: [PATCH] chore: define node engines Because of dependency of `@achrinza/node-ipc`, its config node engine not allow > 17. so should define a lts node version to tell vercel Errors below: `error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.12.1"` --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 3bf404277c..954c9c2373 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,9 @@ "netease_api:run": "npx NeteaseCloudMusicApi" }, "main": "background.js", + "engines": { + "node": "14 || 16" + }, "dependencies": { "@unblockneteasemusic/rust-napi": "^0.4.0", "NeteaseCloudMusicApi": "^4.8.7",