You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ffec773
Browse filesBrowse the repository at this point in the historyBrowse files
`System Node at ${darwinNode} is available, but its version could not be determined. Using ${selectedNode} for the daemon. Install Node 24.15+ (recommended) or Node 22.22.3+ from nodejs.org or Homebrew.`,
509
+
);
510
+
});
511
+
512
+
it("reports a known unsupported system Node version",()=>{
`System Node 18.19.0 at ${darwinNode} is outside the supported range. Using ${selectedNode} for the daemon. Install Node 24.15+ (recommended) or Node 22.22.3+ from nodejs.org or Homebrew.`,
527
+
);
528
+
});
529
+
530
+
it("does not warn for a supported system Node version",()=>{
531
+
constwarning=renderSystemNodeWarning(
532
+
{
533
+
path: darwinNode,
534
+
sqliteVersion: "3.51.3",
535
+
version: "24.15.0",
536
+
nodeSharedSqlite: false,
537
+
supported: true,
538
+
},
503
539
"/Users/me/.fnm/node-22/bin/node",
504
540
);
505
541
506
-
expect(warning).toContain("outside the supported range");
507
-
expect(warning).toContain(darwinNode);
542
+
expect(warning).toBeNull();
508
543
});
509
544
510
545
it("renders a WAL safety warning for supported Node with unsafe SQLite",()=>{
Copy file name to clipboardExpand all lines: src/daemon/runtime-paths.ts
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -232,16 +232,19 @@ export async function resolveSystemNodeInfo(params: {
232
232
returnfirstAvailable;
233
233
}
234
234
235
-
/** Renders a warning when the system Node exists but is outside the supported range. */
235
+
/** Renders a warning when the system Node exists but is unsuitable for the daemon. */
236
236
exportfunctionrenderSystemNodeWarning(
237
237
systemNode: SystemNodeInfo|null,
238
238
selectedNodePath?: string,
239
239
): string|null{
240
240
if(!systemNode||systemNode.supported){
241
241
returnnull;
242
242
}
243
-
constversionLabel=systemNode.version??"unknown";
244
243
constselectedLabel=selectedNodePath ? ` Using ${selectedNodePath} for the daemon.` : "";
244
+
if(systemNode.version===null){
245
+
return`System Node at ${systemNode.path} is available, but its version could not be determined.${selectedLabel} Install Node 24.15+ (recommended) or Node 22.22.3+ from nodejs.org or Homebrew.`;
0 commit comments