Java Gradle build failed because npm is missing
Error recorded 7 times in PanelAlpha Engine deploys on Java. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen7 times · 6 variants
WhereJava
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The Java/Gradle build evaluates /app/gradle/utils.gradle, which requires the npm executable. The selected Gradle image contains Java and Gradle but does not have npm on its PATH. The build stops before the application can start.
What the log looks like
Deploy log
Detected project type: Java (Gradle)Using strategy: javaLoaded base image gradle:8-jdk21 from host cacheCompiling application on hostFAILURE: Build failed with an exception.* Where:Script '/app/gradle/utils.gradle' line: 11* What went wrong:> npm executable not found. Install it and ensure it is on PATH (lookup used 'which npm').BUILD FAILED in 40s