MCPcopy Create free account
hub / github.com/babel/babel / install

Function install

test/runtime-integration/node-versions.mjs:74–80  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

72}
73
74async function install(version) {
75 const dir = path.join(root, version);
76 await mkdir(dir);
77 // node.cjs only needs the node binary.
78 await retry(() => (IS_WINDOWS ? installExe : installTarball)(version, dir));
79 return dir;
80}
81
82async function installExe(version, dir) {
83 const { body } = await download(

Callers 1

node-versions.mjsFile · 0.70

Calls 1

retryFunction · 0.85

Tested by

no test coverage detected