Windows-build-tools: npm program die at the second "Waiting for installers"

Created on 16 Oct 2017  路  22Comments  路  Source: felixrieseberg/windows-build-tools

I'v waited 5 hours for install fininsh !

Most helpful comment

@bigbenz8 @Tatsujinichi

Was also waiting.

Had a look at what it downloads, in this file https://github.com/felixrieseberg/windows-build-tools/blob/6b35533f83f8ee686bec2e0896d54cd0c70b94f3/src/constants.js#L5

I went to the url which downloaded the installer, then the npm install instantly finished. So try going to https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe npm installing to see if it installs.

All 22 comments

I have seen this as well.

@bigbenz8 @Tatsujinichi

Was also waiting.

Had a look at what it downloads, in this file https://github.com/felixrieseberg/windows-build-tools/blob/6b35533f83f8ee686bec2e0896d54cd0c70b94f3/src/constants.js#L5

I went to the url which downloaded the installer, then the npm install instantly finished. So try going to https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe npm installing to see if it installs.

@bigbenz8 will it eventually complete the install? .. i have been waiting for 2 hours now

@MuhamadOmr Have you tried what I suggested above?

@sparcut I tried it and it didn't work. "Waiting for installers" still hangs.

I found the "fix" the following way:

  • I downloaded the build tools from the URL @sparcut provided.
  • I tried to run the installer.
  • The installer gave me the error: "Cannot run installer because another setup is in progress."

It seemed obvious that the same issue was preventing progress from the installer.
I simply closed any and all applications running on my computer, tried to run the installer that was downloaded, and since that worked, I guessed that npm install --global --production windows-build-tools would work now as well. And indeed it did.

Hope that works for some of you.

@SvenSchoene's fix didn't work for me, unfortunately. The installer from @sparcut URL installed correctly, it seems, while the npm installation was still running, but complained in the end that some parts were already installed so were skipped.
Killed the windows-build-tools, started them again, and it once again hangs in the second installer.

@hellokatili Have you had any success with what fixed it for @SvenSchoene?

Tracked down where the download is occurring from the constants.js, funnily enough, it happens in download.js... probably should have been the first place I looked, but anyway. https://github.com/felixrieseberg/windows-build-tools/blob/ec5bc83bc4e801dd75a98ad932686a7ee64a5647/src/download.js

It uses npm nugget, though I've never used it before so I don't know if it's being used correctly, it does say it is a CLI installer, but it seems to be importable as a node module. I reckon the problem will either be that nugget is having trouble with installing windows build tool , or nugget is being used wrong/download.js error.

Hmmm, strange.

none of this solutions is working for me ...
._.

Open your tasks manager then kill all processus "Microsoft Visual C++ Build Tools" then try to run the npm command or download visualcppbuildtools_full.exe and install it

While waiting nearly 2 hours, it completed with the success messsage

For all people who will face this issue too, just check the solution by scriptnull in the following post. This made my day!!!

When running in debug mode I noticed the following message

windows-build-tools Installer: Stdout from launch-installer.ps1:
This installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.

It looks as if it downloaded python-2.7.14.amd64.msi but then tries to run python-2.7.13.msi

[>                                            ] 0.0% (0 B/s)
Downloading python-2.7.14.amd64.msi
function runPythonInstaller
{
    if (Test-Path $path)
    {
        cd $path
        $pyParams = "/i", "python-2.7.13.msi", "TARGETDIR=```"$path\python27```"", "ALLUSERS=0", "/qn", "/L*P", "`"$path\python-log.txt`""
        Invoke-Expression "msiexec.exe $pyParams"
    }
}

@pmacn: Thanks a lot. I copied the downloaded python-2.7.14.amd64.msi to a new file with name python-2.7.13.msi, then started the installation again and it worked!!!!!

what andi-georg said. Just be careful: not only do you have to remove the amd64 from the filename, but also to change the version number from 2.7.14 to 2.7.13 (emphasis on 13).

Seems that the python filename/version is hard-coded.

Yep, that is the trick:

C:\Users\ganicke\.windows-build-tools>copy python-2.7.14.amd64.msi python-2.7.13.msi

I see several competing solutions here. What is the one solution that's clean and most likely to work?

Left mine downloading for over 10 hours overnight and its still hung there. None of the aforementioned suggestions have worked.

Yeah me too. The second one is still spinning. I tried installing Python from the renamed installer. It installed but this is still stuck. I'm probably have to find and kill the process.

What is the reason there's no fix for something so critical after so long?

@jpack2015 if it has finished installing Visual Studio Build Tools just press Ctrl-C and exit it. Then manually install Python 2 (you can use the downloaded file in windows-build-tools).

VS Build Tools will be in C:\Users\<<username>>\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin\amd64 (replace <<username>>) so you would want to add this path to PATH.

Also, I got here because of trying to install node-sass in which case, also hardlink the Python executable:

cd C:\Python27
mklink /H python2.exe python.exe

But this only fixes the immediate problem. You may encounter more problems after fixing it. ~Sorry, at the moment that's all I have.~ See here if MSBuild asks you to upgrade project, failing the build.

Edit: For node-sass or ember-cli-sass, ~install the latest version instead. It doesn't require the build tools.~ Follow my comment here.

@ADTC Yeah, I got mine to work finally by installing python myself. Funny how it didn't work the first time I tried it, but decided to work this time.

This should be fixed in 1.4.1 thanks to @pmacn. Sorry for the trouble!

Was this page helpful?
0 / 5 - 0 ratings