felixrieseberg / windows-build-tools

:package: Install C++ Build Tools for Windows using npm
MIT License
3.4k stars 237 forks source link

Installer hangs and fails to install build tools #149

Closed ShadowRanger closed 6 years ago

ShadowRanger commented 6 years ago

I seem to be having a problem where windows-build-tools is failing to install the Visual Studio build tools. Here is the console output I receive:


> windows-build-tools@5.0.0 postinstall C:\Users\User\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js

Downloading vs_BuildTools.exe
[============================================>] 100.0% of 1.12 MB (1.12 MB/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\User\.windows-build-tools\vs_BuildTools.exe.

Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!

Status from the installers:
---------- Visual Studio Build Tools ----------
2018-09-30T02:28:02 : Verbose : Spawning uninstall stub
2018-09-30T02:28:02 : Verbose : [InstallerImpl]: Rpc connection was closed.
2018-09-30T02:28:02 : Verbose : [InstallerImpl]: Stream was closed
2018-09-30T02:28:02 : Verbose : [SetupUpdaterImpl]: Rpc connection was closed.
2018-09-30T02:28:02 : Verbose : [SetupUpdaterImpl]: Stream was closed
------------------- Python --------------------
Python 2.7.15 is already installed, not installing again.

The installer seems to be hanging and not completing, as can be seen in the last line. I am unsure what the verbose errors mean, but after looking into the dd_bootstrapper logs I am seeing this:

VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Current OptIn value is 1
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Commandline arguments = --norestart --quiet --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Parent process name = vs_BuildTools
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Parent process product version = 15.5.27130.2027
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: CampaignId = 
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: OfflineFilePath = 
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: LayoutLocation = 
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: ExecutableArguments = /finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201809301522143964.json" --norestart --quiet --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools --locale en-GB --activityId "54eea71d-9c10-4bc6-a0dc-57cbb49dc4c6"
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: OSVersion = Microsoft Windows NT 10.0.17134.0
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Beginning file download. File = https://aka.ms/vs/15/release/installer.
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Download requested: https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:30/09/2018 3:22:14 PM: Attempting download 'https://aka.ms/vs/15/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:30/09/2018 3:22:15 PM: Uri 'https://aka.ms/vs/15/release/installer' redirected to 'https://download.visualstudio.microsoft.com/download/pr/c5ac9572-e142-49ce-b0b4-85642e0bf298/b07af951a3107ff7ec42ba3c9e4ad1c9/vs_installer.opc'
VisualStudio Bootstrapper:30/09/2018 3:22:31 PM: Package signature verification returned Success for path: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\o.sin\vs_installer.opc
VisualStudio Bootstrapper:30/09/2018 3:22:31 PM: Download of 'https://aka.ms/vs/15/release/installer' succeeded using engine 'WebClient'
VisualStudio Bootstrapper:30/09/2018 3:22:35 PM: Beginning extracting files to C:\Program Files (x86)\Microsoft Visual Studio\Installer.
VisualStudio Bootstrapper:30/09/2018 3:22:35 PM: Extracting vs_installer.opc to 'C:\Program Files (x86)\Microsoft Visual Studio\Installer'.
VisualStudio Bootstrapper:30/09/2018 3:22:38 PM: Successfully extracted 'C:\Program Files (x86)\Microsoft Visual Studio\Installer'.
VisualStudio Bootstrapper:30/09/2018 3:22:38 PM: Current OptIn value is 1
VisualStudio Bootstrapper:30/09/2018 3:22:38 PM: Starting vs setup process 'vs_installer.exe' with arguments '/finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201809301522143964.json" --norestart --quiet --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools --locale en-GB --activityId "54eea71d-9c10-4bc6-a0dc-57cbb49dc4c6"'.
VisualStudio Bootstrapper:30/09/2018 3:22:38 PM: Vs setup process C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe started. All done.
VisualStudio Bootstrapper:30/09/2018 3:22:38 PM: Vs setup process starting. Exiting with code 0
VisualStudio Bootstrapper:30/09/2018 3:22:38 PM: Bootstrapper Successfully completed.
khawarizmus commented 5 years ago

How did you solve this @ShadowRanger ?