From adff5363662ac56208a5ce9a97c469772233cacc Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Mon, 5 Aug 2019 21:44:47 -0400 Subject: [PATCH] Update installer.js --- lib/installer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index 7e6a7dec..5b8c592e 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -205,9 +205,9 @@ function acquireNodeFromFallbackLocation(version) { exeUrl = `https://nodejs.org/dist/v${version}/win-${os.arch()}/node.exe`; libUrl = `https://nodejs.org/dist/v${version}/win-${os.arch()}/node.lib`; const exePath = yield tc.downloadTool(exeUrl); - yield io.mv(exePath, path.join(tempDir, 'node.exe')); + yield io.cp(exePath, path.join(tempDir, 'node.exe'), {recursive: true}); const libPath = yield tc.downloadTool(libUrl); - yield io.mv(libPath, path.join(tempDir, 'node.lib')); + yield io.cp(libPath, path.join(tempDir, 'node.lib'), {recursive: true}); } catch (err) { if (err instanceof tc.HTTPError && err.httpStatusCode == 404) {