MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / installVersion

Function installVersion

src/utils/nativeInstaller/installer.ts:421–432  ·  view source on GitHub ↗
(
  stagingPath: string,
  installPath: string,
  downloadType: 'npm' | 'binary',
)

Source from the content-addressed store, hash-verified

419}
420
421async function installVersion(
422 stagingPath: string,
423 installPath: string,
424 downloadType: 'npm' | 'binary',
425) {
426 // Use the explicit download type instead of guessing
427 if (downloadType === 'npm') {
428 await installVersionFromPackage(stagingPath, installPath)
429 } else {
430 await installVersionFromBinary(stagingPath, installPath)
431 }
432}
433
434/**
435 * Performs the core update operation: download (if needed), install, and update symlink.

Callers 1

performVersionUpdateFunction · 0.85

Calls 2

installVersionFromBinaryFunction · 0.85

Tested by

no test coverage detected