From e6df93ff5cd09a948c7400c4d560e02a3ef9c359 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 19 Apr 2025 00:08:13 +0200 Subject: [PATCH] Fix npm executable path resolution in build script --- frontend/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/build.gradle.kts b/frontend/build.gradle.kts index d6a11ee..43cc8bc 100644 --- a/frontend/build.gradle.kts +++ b/frontend/build.gradle.kts @@ -42,7 +42,7 @@ tasks.register("npmBuild") { commandLine(npmCmd, "run", "build") } else { val npmExecutable = file(nodeDir).listFiles()?.find { it.name.startsWith("npm") && it.isDirectory }?.let { - "${it.absolutePath}/npm" + "${it.absolutePath}/bin/npm/" } ?: "$nodeDir/node_modules/npm/bin/npm" commandLine(npmExecutable, "run", "build")