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

Function checkPrerequisites

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

Source from the content-addressed store, hash-verified

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