MCPcopy Index your code
hub / github.com/nodejs/corepack / log

Method log

sources/commands/InstallGlobal.ts:55–61  ·  view source on GitHub ↗
(locator: Locator)

Source from the content-addressed store, hash-verified

53 }
54
55 log(locator: Locator) {
56 if (this.cacheOnly) {
57 this.context.stdout.write(`Adding ${locator.name}@${locator.reference} to the cache...\n`);
58 } else {
59 this.context.stdout.write(`Installing ${locator.name}@${locator.reference}...\n`);
60 }
61 }
62
63 async installFromDescriptor(descriptor: Descriptor) {
64 const resolved = await this.context.engine.resolveDescriptor(descriptor, {allowTags: true, useCache: false});

Callers 14

installFromDescriptorMethod · 0.95
installFromTarballMethod · 0.95
genlist.tsFile · 0.80
mainFunction · 0.80
mkshims.tsFile · 0.80
getLastKnownGoodFilePathFunction · 0.80
getLastKnownGoodFunction · 0.80
activatePackageManagerFunction · 0.80
getDefaultVersionMethod · 0.80
findProjectSpecMethod · 0.80
downloadFunction · 0.80
installVersionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected