MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / checkPrerequisites

Function checkPrerequisites

scripts/dev-static.mjs:195–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193}
194
195function checkPrerequisites() {
196 logStep("1/3", "Checking prerequisites...");
197
198 if (!commandExists("uvx")) {
199 console.error(formatMissingUvxGuidance(projectRoot));
200 process.exit(1);
201 }
202 logSuccess("uvx found");
203
204 if (!commandExists("npm")) {
205 logError("npm is required but not found");
206 process.exit(1);
207 }
208 logSuccess("npm found");
209}
210
211// ═══════════════════════════════════════════════════════════════════════════
212// Process Management

Callers 1

mainFunction · 0.70

Calls 6

formatMissingUvxGuidanceFunction · 0.90
errorMethod · 0.80
logStepFunction · 0.70
commandExistsFunction · 0.70
logSuccessFunction · 0.70
logErrorFunction · 0.70

Tested by

no test coverage detected