Installation on low resources board #264

Open
opened 2026-10-27 12:29:41 +01:00 by adam · 0 comments
Owner

📝 Problem Description

I tried to install remote-term on an old Raspberry Pi 2 and encountered issues for building the frontend.

🚦 Current Behavior

The building process fail

🎯 Expected Behavior

The frontend build

📋 Steps to Reproduce

  1. git clone https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
  2. cd Remote-Terminal-for-MeshCore
  3. uv sync
  4. cd frontend && npm install

💻 Environment Information

  • Board: Raspberry Pi 2 v1.1 with 1 Go of RAM
  • OS: Dietpi based on Debian Trixie (13.5)
  • node: v20.19.2
  • npm: 9.2.0
  • RemoteTerm Version: v3.17.1

📸 Screenshots / Debug Logs

❯ npm run build

> remoteterm-meshcore-frontend@3.17.1 build
> tsc && vite build


<--- Last few GCs --->

[27995:0x20e5248]   240790 ms: Mark-Compact 234.7 (247.3) -> 232.5 (246.8) MB, 2006.16 / 0.00 ms  (average mu = 0.166, current mu = 0.131) allocation failure; scavenge might not succeed
[27995:0x20e5248]   243207 ms: Mark-Compact 234.5 (246.8) -> 232.6 (247.0) MB, 1816.88 / 0.00 ms  (average mu = 0.205, current mu = 0.248) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

Aborted

🔁 Workaround

I searched a little and found that the following settings are required to finish the build :

diff --git a/frontend/package.json b/frontend/package.json
index 434b1aa..66468a9 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -5,7 +5,8 @@
   "type": "module",
   "scripts": {
     "dev": "vite",
-    "build": "tsc && vite build",
+    "build": "vite build",
+    "typecheck": "tsc",
     "packaged-build": "vite build --outDir prebuilt",
     "preview": "vite preview",
     "test": "vitest",
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index a11177e..6eba819 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -12,7 +12,10 @@ export default defineConfig({
   },
   build: {
     outDir: 'dist',
-    sourcemap: true,
+    sourcemap: false,
+    rollupOptions: {
+      maxParallelFileOps: 2
+    }
   },
   server: {
     host: true,
## 📝 Problem Description I tried to install remote-term on an old Raspberry Pi 2 and encountered issues for building the frontend. ## 🚦 Current Behavior The building process fail ## 🎯 Expected Behavior The frontend build ## 📋 Steps to Reproduce 1. git clone https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git 2. cd Remote-Terminal-for-MeshCore 3. uv sync 4. cd frontend && npm install ## 💻 Environment Information - **Board:** Raspberry Pi 2 v1.1 with 1 Go of RAM - **OS:** Dietpi based on Debian Trixie (13.5) - **node:** v20.19.2 - **npm:** 9.2.0 - **RemoteTerm Version:** v3.17.1 ## 📸 Screenshots / Debug Logs ``` ❯ npm run build > remoteterm-meshcore-frontend@3.17.1 build > tsc && vite build <--- Last few GCs ---> [27995:0x20e5248] 240790 ms: Mark-Compact 234.7 (247.3) -> 232.5 (246.8) MB, 2006.16 / 0.00 ms (average mu = 0.166, current mu = 0.131) allocation failure; scavenge might not succeed [27995:0x20e5248] 243207 ms: Mark-Compact 234.5 (246.8) -> 232.6 (247.0) MB, 1816.88 / 0.00 ms (average mu = 0.205, current mu = 0.248) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- Aborted ``` ## 🔁 Workaround I searched a little and found that the following settings are required to finish the build : ``` diff --git a/frontend/package.json b/frontend/package.json index 434b1aa..66468a9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "vite build", + "typecheck": "tsc", "packaged-build": "vite build --outDir prebuilt", "preview": "vite preview", "test": "vitest", diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index a11177e..6eba819 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -12,7 +12,10 @@ export default defineConfig({ }, build: { outDir: 'dist', - sourcemap: true, + sourcemap: false, + rollupOptions: { + maxParallelFileOps: 2 + } }, server: { host: true, ``` <!-- github-sync-id:5844244120 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Remote-Terminal-for-MeshCore#264