MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getJavaInstallCommand

Method getJavaInstallCommand

npm_modules/cli/src/commands/doctor.ts:1246–1256  ·  view source on GitHub ↗

* Gets the appropriate Java installation command for the current platform * @private

()

Source from the content-addressed store, hash-verified

1244 // Fallback for unknown platforms or when distro detection fails
1245 switch (dep) {
1246 case 'npm': {
1247 return 'Install Node.js from https://nodejs.org (includes npm)';
1248 }
1249 case 'bazelisk': {
1250 return 'valdi dev_setup';
1251 }
1252 default: {
1253 return `Install ${dep} using your system's package manager`;
1254 }
1255 }
1256 }
1257
1258 /**
1259 * Outputs diagnostic results in JSON format for machine processing.

Callers 1

checkJavaInstallationMethod · 0.95

Calls 3

getCommonPackageMappingsFunction · 0.90
getPackageNameFunction · 0.90
buildInstallCommandFunction · 0.90

Tested by

no test coverage detected