From d161abcd4f085d1aa3c4c34170b0def2901374aa Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Fri, 14 Nov 2025 08:55:16 +0200 Subject: [PATCH] fix: avoid Node.js v24 DEP0190 deprecation warning https://nodejs.org/docs/latest-v24.x/api/deprecations.html#DEP0190 https://github.com/nodejs/help/issues/5063#issuecomment-3132899776 --- src/hooks/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/init.ts b/src/hooks/init.ts index 71a3870d..c5b48dc1 100644 --- a/src/hooks/init.ts +++ b/src/hooks/init.ts @@ -76,7 +76,7 @@ export const init: Interfaces.Hook<'init'> = async function (opts) { ) const stream = fd.createWriteStream() - spawn(binPath, ['update', '--autoupdate'], { + spawn(`${binPath} update --autoupdate`, { detached: !config.windows, env: autoupdateEnv, stdio: ['ignore', stream, stream],