windows-build-tools
windows-build-tools copied to clipboard
Windows Build Tools failing to install
I have been running into a common issue with installing windows-build-tools as part of a CI pipeline in which the installer would just hang or fail. See #252 #179 #152 etc
A common workaround is to use npm install --global --production [email protected] which worked perfectly up until around mid April. It looks like the installer just fails to download the information it needs. Some things I picked out of the log:
Error 0x80070002: Failed attempt to download URL: 'http://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25420.01&sar=S80_RCPrep&o1=1F0C5812581EFDCA1A2A9C3BCE802F53D7832D6E' to: 'C:\Users\VSSADM~1\AppData\Local\Temp\{a9528995-e130-4501-ae19-bbfaddb779cc}\Msi_BuildTools_MSBuild_amd64'
Error 0x80190194: Failed attempt to download URL: 'bits://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25420.01&sar=S80_RCPrep&o1=1F0C5812581EFDCA1A2A9C3BCE802F53D7832D6E' to: 'C:\Users\VSSADM~1\AppData\Local\Temp\{a9528995-e130-4501-ae19-bbfaddb779cc}\Msi_BuildTools_MSBuild_amd64'
Prompt for source of package: Msi_BuildTools_MSBuild_amd64, payload: Msi_BuildTools_MSBuild_amd64, path: C:\Users\VssAdministrator\.windows-build-tools\packages\BuildTools_MSBuild_amd64\BuildTools_MSBuild.msi
Next Source: Web, Attempted: 3, Limit:3
Source retrieved: Web
Sleep for 3 seconds before retrying
Error 0x80070002: Failed to send request to URL: http://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25420.01&sar=S80_RCPrep&o1=1F0C5812581EFDCA1A2A9C3BCE802F53D7832D6E
Error 0x80070002: Failed to connect to URL: http://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25420.01&sar=S80_RCPrep&o1=1F0C5812581EFDCA1A2A9C3BCE802F53D7832D6E
Error 0x80070002: Failed to get size and time for URL: http://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25420.01&sar=S80_RCPrep&o1=1F0C5812581EFDCA1A2A9C3BCE802F53D7832D6E
Error 0x80070002: Failed attempt to download URL: 'http://go.microsoft.com/fwlink/?prd=12514&pver=Dev14&sbp=d14rel&plcid=0x409&clcid=0x409&ar=25420.01&sar=S80_RCPrep&o1=1F0C5812581EFDCA1A2A9C3BCE802F53D7832D6E' to: 'C:\Users\VSSADM~1\AppData\Local\Temp\{a9528995-e130-4501-ae19-bbfaddb779cc}\Msi_BuildTools_MSBuild_amd64'
MUX: Acquire Failed. Retry acquiring after sleeping for 3 seconds, Retry Count: 1 of 3
Could not install Visual Studio Build Tools.
Does anyone know what could be causing this?
I have the same issue
I also have this issue
I do too
I have the same issue, node 14
Alternatives https://github.com/felixrieseberg/windows-build-tools/issues/245#issuecomment-825547606
On my system (Win 10 Pro) npm install --global --production [email protected] works but installing the latest version fails.
I am using Node v15.14.0 with npm v7.7.6.