node --version: v10.2.1
npm --version: 6.1.0
command:
npm --add-python-to-path='true' --debug install --global windows-build-tools

never get it installed, it hangs there for hours
I experience the same problem.
Windows 10 (1803)
Node v8.11.2
Npm v6.1.0

this process doesn't seem to finish:

Same here… :(
Thanks for the report! Interestingly enough, it appears that installation did succeed, the process is just not exiting 🤔
We have this issue as well. If I am not wrong, facing this only from last Friday(25/May/18).
I have the same issue with updating from 2.3.0 to 3.0.0:
$ npm -g i windows-build-tools@latest
> [email protected] postinstall C:\Users\AppData\Roaming\npm\node_modules\wind
ws-build-tools
> node ./dist/index.js
Downloading BuildTools_Full.exe
[> ] 0.0% (0 B/s)
Downloaded BuildTools_Full.exe. Saved to C:\Users\.windows-build-tools\BuildTools_Full
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 ----------
[0288:0CE8][2018-05-30T10:52:47]i371: Updating session, registration key: SOFTWARE\Microsof
\Windows\CurrentVersion\Uninstall\{a9528995-e130-4501-ae19-bbfaddb779cc}, resume: ARP, rest
rt initiated: No, disable resume: No
[08D8:1584][2018-05-30T10:52:47]i399: Apply complete, result: 0x0, restart: None, ba reques
ed restart: No
------------------- Python --------------------
Python 2.7.14 is already installed, not installing again.
I managed to get the "npm i -g windows-build-tools" to finish correctly.
At the point where the Visual Studio Build tools showed this: "[B6A4:BCB0][2018-05-30T11:32:46]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No"
Then I started the taskmanager to kill the "BuildTools_Full.exe"
Then I added the following to the "build-tools-log.txt" : Variable: IsInstalled = 1
then the npm install of windows build tools finished with success.
Hope this helps.
@bferdinandus solution worked for me.
When the installer has reached the point:
---------- Visual Studio Build Tools ----------
[1918:0CCC][2018-05-30T17:47:07]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a9528995-e130-4501-ae19-bbfaddb779cc}, resume: ARP, restart initiated: No, disable resume: No
[0338:0FB8][2018-05-30T17:47:07]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
------------------- Python --------------------
Python 2.7.15 is already installed, not installing again.
1, Open task manager and kill the BuildTolls_Full.exe process
C:\Users\<User Name>\.windows-build-tools and open build-tools-log.txt with a text-editorVariable: IsInstalled = 1
@phil'n'bfer: good spot
Surely credit should go to @Philam18 and @bferdinandus #usernamefail
I also thought it's kind of a bug that installing windows-build-tools hung at the following step:
PS C:\Windows\system32> npm install --global --production windows-build-tools
> [email protected] postinstall C:\Users\user\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js
Downloading python-2.7.15.amd64.msi
[============================================>] 100.0% of 20.25 MB (417.45 kB/s)
Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\user\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
[============================================>] 100.0% of 1.12 MB (746.57 kB/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 ----------
2019-01-02T02:08:08 : Verbose : Spawning uninstall stub
2019-01-02T02:08:08 : Verbose : [InstallerImpl]: Rpc connection was closed.
2019-01-02T02:08:08 : Verbose : [InstallerImpl]: Stream was closed
2019-01-02T02:08:08 : Verbose : [SetupUpdaterImpl]: Rpc connection was closed.
2019-01-02T02:08:08 : Verbose : [SetupUpdaterImpl]: Stream was closed
------------------- Python --------------------
Successfully installed Python 2.7
However, later I realized that vs_installerservice.exe was downloading a big chunk of data in the background. (I used Windows Resource Manager to find it out.) It's not okay to have such a behavior for someone whose Internet connection is limited or metered. Moreover, even after the downloading finished, nothing happened anymore, so the installation process kept hanging.
I'm on Windows 10 (build 1607),
$ npm version
{ npm: '6.5.0',
ares: '1.15.0',
cldr: '33.1',
http_parser: '2.8.0',
icu: '62.1',
modules: '64',
napi: '3',
nghttp2: '1.34.0',
node: '10.15.0',
openssl: '1.1.0j',
tz: '2018e',
unicode: '11.0',
uv: '1.23.2',
v8: '6.8.275.32-node.45',
zlib: '1.2.11' }
first try this one..
npm install --global --production --verbose windows-build-tools
then u can use your normal command.
worked for me
---------- Visual Studio Build Tools ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Successfully installed Python 2.7
Now configuring the Visual Studio Build Tools and Python...
All done!
first try this one..
npm install --global --production --verbose windows-build-tools
then u can use your normal command.
worked for me
this actually worked for me, I've been looking for 2 DAYS! thnx so much for the help <3
@bferdinandus solution worked for me.
When the installer has reached the point:---------- Visual Studio Build Tools ---------- [1918:0CCC][2018-05-30T17:47:07]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a9528995-e130-4501-ae19-bbfaddb779cc}, resume: ARP, restart initiated: No, disable resume: No [0338:0FB8][2018-05-30T17:47:07]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No ------------------- Python -------------------- Python 2.7.15 is already installed, not installing again.1, Open task manager and kill the
BuildTolls_Full.exeprocess
- Go to
C:\Users\<User Name>\.windows-build-toolsand openbuild-tools-log.txtwith a text-editor- Append the following:
Variable: IsInstalled = 1
- Save it, and back at the console, npm should have finished.
This solution work for me. Thanks.
This is still affecting certain people (me). Does anyone know why this is happening? Flaky workarounds is not the solution to this.
first try this one..
npm install --global --production --verbose windows-build-tools
then u can use your normal command.
worked for me
thank you! you saved my day!
For those who are still stuck. Try this: https://github.com/felixrieseberg/windows-build-tools/issues/172#issuecomment-484091133
It solved mine. And of many others :)
npm config set msvs_version 2017
Most helpful comment
@bferdinandus solution worked for me.
When the installer has reached the point:
1, Open task manager and kill the
BuildTolls_Full.exeprocessC:\Users\<User Name>\.windows-build-toolsand openbuild-tools-log.txtwith a text-editor