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

Function checkPrerequisites

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

Source from the content-addressed store, hash-verified

199}
200
201function checkPrerequisites() {
202 logStep("1/3", "Checking prerequisites...");
203
204 if (!commandExists("uvx")) {
205 console.error(formatMissingUvxGuidance(projectRoot));
206 process.exit(1);
207 }
208 logSuccess("uvx found");
209
210 if (!commandExists("npm")) {
211 logError("npm is required but not found");
212 process.exit(1);
213 }
214 logSuccess("npm found");
215}
216
217// ═══════════════════════════════════════════════════════════════════════════
218// 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