fix: install npm dependencies before building from source

The build was failing because npm packages weren't installed. Now runs
npm install in frontend-modern directory before running make build.
This commit is contained in:
Pulse Monitor
2025-09-11 16:36:52 +00:00
parent f8b21d771b
commit e236dde54f
+10
View File
@@ -1782,6 +1782,16 @@ main() {
cd pulse-src
print_info "Installing frontend dependencies..."
cd frontend-modern
if ! npm install >/dev/null 2>&1; then
print_error "Failed to install frontend dependencies"
cd /
rm -rf "$TEMP_BUILD_DIR"
exit 1
fi
cd ..
print_info "Building Pulse..."
if ! make build >/dev/null 2>&1; then
print_error "Build failed"