Windows-build-tools: Installation Hangs after "Successfully installed Python 2.7" and no log file for visual studio build tools

Created on 29 Jan 2019  ·  22Comments  ·  Source: felixrieseberg/windows-build-tools

I run the "npm install --global --production windows-build-tool" and installation got stuck after "Successfully installed Python 2.7" (almost 2 hours)
image
And no log file for studio build tools in ".windows-build-tools" folder
image
It installed some programs related to Visual Studio (control panel screenshot below)
image
Any idea how to fix this? Thanks

Most helpful comment

I faced a similar issue. As a workaround I installed the 4.0.0 version npm install --global --production [email protected] and then run the original one npm install -g --production windows-build-tools, and it completed

All 22 comments

I am experiencing the same thing.
Windows 10
nodejs 10.11.0

Hi @terebentina , I figured that everything is installed as required (Python and VS 2017) but the CMD script/installer got stuck and can't get the feedback from VS installer.
So after installer installed the VS 2017 components (as shown in screenshot in my initial post, will take some time to install everything), I opened the task manager and killed "node.exe" processes (two of those processes were running) and then I closed the CMD window, opened a new CMD window and went to next step (in my case, installed node-gyp) and everything worked fine on second attempt (it didn't work first time, I uninstalled everything and followed the process again as I mentioned above).

You may want to take a look at this post:
https://github.com/felixrieseberg/windows-build-tools/issues/152#issuecomment-432945646

I faced a similar issue. As a workaround I installed the 4.0.0 version npm install --global --production [email protected] and then run the original one npm install -g --production windows-build-tools, and it completed

I am stuck with the same issue, cant get over "Python 2.7.10 already installed, not installing again" and stays there for the next ice age like a zen monk :( any help will be appreciated, dont know what to do. Tried what @gain1200 had suggested but no luck.

I faced a similar issue. As a workaround I installed the 4.0.0 version npm install --global --production [email protected] and then run the original one npm install -g --production windows-build-tools, and it completed

Thank you :) @gian1200

npm install --global --production windows-build-tools

You may see this error below : (Just reboot the system , and run the above in window power shell as admin)
2019-10-02T04:22:16 : Error : It looks like you're installing or modifying another product right now.
Please wait until all other operations are finished and try again.

it i

Hi everyone! I found the solution to this problem with this steps:

  1. Uninstall Python 2.7
  2. Install this version of Python
  3. Run npm install --global windows-build-tools

Let me know if it works!

@peraltafederico Thank you this worked for me!

I thought it was stuck too, but it just took about 4 minutes to get past that.

Hi everyone! I found the solution to this problem with this steps:

Uninstall Python 2.7
Install this version of Python
Run npm install --global windows-build-tools

This works, but a note to Python3 users; make sure your 'python' path to python2 takes precedence over python3.

ty @peraltafederico for your solution stuck now for one hour and you find the solution thank s a lot

I'm not sure if I have a legit solution. After waiting for 30 minutes and nothing happening, I just killed the application. And ran the install script from the beginning again. This time it said python was already installed and then blew through the rest of installation.

The 5.2.2 package is adding an entry to the users PATH environment variable every time it runs. As was in a CI scenario it was added 10's of time. Once i removed all unnecessary duplicates the package would again install.
1-22-2021 9-09-32 AM

我面临着一个类似的问题。作为一个解决方法,我安装了4.0.0版本,然后运行原来的一个,它完成了npm install --global --production [email protected]``npm install -g --production windows-build-tools

Thanks

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualstudio2017-workload-vctools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualcpp-build-tools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

awesome @karlhorky works like charm thankyou very much

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualcpp-build-tools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

It worked for me, thank you very much

Should I delete .windows-built-tools folder and uninstall python 2.7 before re-running the commands that are specified as solutions?

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualcpp-build-tools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

It really works, cost me several hours , thanks so much.

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualcpp-build-tools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

THANK YOU!

npm config set msvs_version 2017
saved me

Hi everyone! I found the solution to this problem with this steps:

  1. Uninstall Python 2.7
  2. Install this version of Python
  3. Run npm install --global windows-build-tools

Let me know if it works!

Hello after installing 2.7.17 when I follow step 3 it again installs 2.7.15

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DanielNaaman picture DanielNaaman  ·  3Comments

jdalton picture jdalton  ·  6Comments

kittaakos picture kittaakos  ·  8Comments

ndraiman picture ndraiman  ·  7Comments

DieselGaming picture DieselGaming  ·  5Comments