Windows-build-tools: Stuck at python installed successfully

Created on 16 Apr 2021  路  7Comments  路  Source: felixrieseberg/windows-build-tools

I have tried installing this package with node 14 as well as node 10 from two days whenever I try to install windows build tools it always stuck at python installed successfully and doesn't do anything I have even waited for 4-5 hrs even though I have a good internet connection

Most helpful comment

I managed to find a workaround. There is an issue with the windows-build-tools script finding the log file for the VS build tools installer; it seems maybe the log file created by the VS build tools installer has changed.

The script is looking for a log file with a name starting with dd_client_ in the folder %USERPROFILE%\AppData\Local\Temp, but the VS build tools installer doesn't seem to be creating any file starting with dd_client_.

The workaround I used was this:

  1. Run npm install -g windows-build-tools
  2. Navigate to %USERPROFILE%\AppData\Local\Temp and look for a log file with a name like dd_installer_20210421124746.log
  3. Keep checking the contents of the log file until you see a message Closing the installer with exit code 0
  4. Check your list of installed programs to verify it includes Visual Studio Build Tools
  5. Create a file in %USERPROFILE%\AppData\Local\Temp named dd_client_.log
  6. Edit dd_client_.log, add the string Closing installer. Return code: 3010., and save the file

Then the windows-build-tools script should continue.

All 7 comments

Me too (and my team)!

Today I'm trying others old versions of npm/node

I am also stuck at 'Successfully installed Python 2.7"

I managed to find a workaround. There is an issue with the windows-build-tools script finding the log file for the VS build tools installer; it seems maybe the log file created by the VS build tools installer has changed.

The script is looking for a log file with a name starting with dd_client_ in the folder %USERPROFILE%\AppData\Local\Temp, but the VS build tools installer doesn't seem to be creating any file starting with dd_client_.

The workaround I used was this:

  1. Run npm install -g windows-build-tools
  2. Navigate to %USERPROFILE%\AppData\Local\Temp and look for a log file with a name like dd_installer_20210421124746.log
  3. Keep checking the contents of the log file until you see a message Closing the installer with exit code 0
  4. Check your list of installed programs to verify it includes Visual Studio Build Tools
  5. Create a file in %USERPROFILE%\AppData\Local\Temp named dd_client_.log
  6. Edit dd_client_.log, add the string Closing installer. Return code: 3010., and save the file

Then the windows-build-tools script should continue.

@jwonderly This workaround got the script to complete. Now I am seeing "All done!" at the end of the script.

Thank you!!

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...

This option is a lot less hacky than editing .log's!

Everyone's solution was helpful. Thanks a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anaisbetts picture anaisbetts  路  4Comments

kimbaudi picture kimbaudi  路  3Comments

keithnbrown picture keithnbrown  路  12Comments

DieselGaming picture DieselGaming  路  5Comments

geniusjam picture geniusjam  路  13Comments