(version)
| 72 | } |
| 73 | |
| 74 | async 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 | |
| 82 | async function installExe(version, dir) { |
| 83 | const { body } = await download( |
no test coverage detected