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

Method execute

sources/commands/InstallLocal.ts:21–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 });
20
21 async execute() {
22 const [descriptor] = await this.resolvePatternsToDescriptors({
23 patterns: [],
24 });
25
26 const resolved = await this.context.engine.resolveDescriptor(descriptor, {allowTags: true});
27 if (resolved === null)
28 throw new UsageError(`Failed to successfully resolve '${descriptor.range}' to a valid ${descriptor.name} release`);
29
30 this.context.stdout.write(`Adding ${resolved.name}@${resolved.reference} to the cache...\n`);
31 await this.context.engine.ensurePackageManager(resolved);
32 }
33}

Callers

nothing calls this directly

Calls 2

resolveDescriptorMethod · 0.80
ensurePackageManagerMethod · 0.80

Tested by

no test coverage detected