MCPcopy Index your code
hub / github.com/Waishnav/devspace / assertSupportedNode

Function assertSupportedNode

src/cli.ts:344–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342}
343
344function assertSupportedNode(): void {
345 if (satisfies(process.versions.node, SUPPORTED_NODE_RANGE)) return;
346
347 throw new Error(
348 [
349 `DevSpace requires Node ${SUPPORTED_NODE_RANGE}.`,
350 `Current Node: ${process.version}`,
351 "",
352 "Install Node 22 LTS or use a version manager such as nvm, fnm, or mise.",
353 ].join("\n"),
354 );
355}
356
357function nodeVersionStatus(): string {
358 return satisfies(process.versions.node, SUPPORTED_NODE_RANGE)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected