fix win32 issue
shasum is a perl script, ignore it
windows don't exist /dev/null
MODIFY
src/tarballs/node.ts
src/tarballs/node.ts
@@ -47,7 +47,7 @@ export async function fetchNodeBinary({nodeVersion, output, platform, arch, tmp}
const basedir = path.dirname(tarball)
await qq.mkdirp(basedir)
await qq.download(url, tarball)
- await qq.x(`grep "${path.basename(tarball)}" "${shasums}" | shasum -a 256 -c -`, {cwd: basedir})
+ if (platform !== 'win32') await qq.x(`grep "${path.basename(tarball)}" "${shasums}" | shasum -a 256 -c -`, {cwd: basedir})
}
const extract = async () => {
@@ -58,7 +58,7 @@ export async function fetchNodeBinary({nodeVersion, output, platform, arch, tmp}
await qq.mkdirp(path.dirname(cache))
if (platform === 'win32') {
qq.pushd(nodeTmp)
- await qq.x(`7z x -bd -y "${tarball}" > /dev/null`)
+ await qq.x(`7z x -bd -y "${tarball}"`)
await qq.mv([nodeBase, 'node.exe'], cache)
qq.popd()
} else {

fix win32 issue (#845)

- shasum is a perl script, ignore it
- windows don't exist /dev/null