Windows-build-tools: win10 ver17763.316 Could not install Visual Studio Build Tools.

Created on 14 Feb 2019  路  5Comments  路  Source: felixrieseberg/windows-build-tools

My windows10 winver is 1809 os version is 17763.316

this is 5.1.0

PS C:\WINDOWS\system32> npm install --global windows-build-tools

[email protected] postinstall D:\nodejs\node-global\node_modules\windows-build-tools
node ./dist/index.js

Downloading vs_BuildTools.exe
[> ] 0.0% (0 B/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\cmd.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-02-14T11:06:21 : Verbose : [InstalledProductsProviderImpl]: Stream was closed
2019-02-14T11:06:21 : Verbose : [InstallerImpl]: Rpc connection was closed.
2019-02-14T11:06:21 : Verbose : [InstallerImpl]: Stream was closed
2019-02-14T11:06:21 : Verbose : [SetupUpdaterImpl]: Rpc connection was closed.
2019-02-14T11:06:21 : Verbose : [SetupUpdaterImpl]: Stream was closed
------------------- Python --------------------
Python 2.7.14 is already installed, not installing again.

Could not install Visual Studio Build Tools.
Please find more details in the log files, which can be found at
C:\Users\cmd.windows-build-tools

Skipping configuration: No configuration for Python or Visual Studio Build Tools required.
TypeError: Cannot read property 'then' of undefined
at install_1.install (D:\nodejs\node-global\node_modules\windows-build-tools\dist\start.js:19:17)
at launch_1.launchInstaller.then.then.then (D:\nodejs\node-global\node_modules\windows-build-tools\dist\install\index.js:34:9)
at process._tickCallback (internal/process/next_tick.js:68:7)

this is 5.0.0
PS C:\WINDOWS\system32> npm install --global [email protected]

[email protected] postinstall D:\nodejs\node-global\node_modules\windows-build-tools
node ./dist/index.js

Downloading vs_BuildTools.exe
[> ] 0.0% (0 B/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\cmd.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-02-14T11:08:16 : Verbose : [InstalledProductsProviderImpl]: Stream was closed
2019-02-14T11:08:16 : Verbose : [InstallerImpl]: Rpc connection was closed.
2019-02-14T11:08:16 : Verbose : [InstallerImpl]: Stream was closed
2019-02-14T11:08:16 : Verbose : [SetupUpdaterImpl]: Rpc connection was closed.
2019-02-14T11:08:16 : Verbose : [SetupUpdaterImpl]: Stream was closed
------------------- Python --------------------
Python 2.7.14 is already installed, not installing again.

Could not install Visual Studio Build Tools.
Please find more details in the log files, which can be found at
C:\Users\cmd.windows-build-tools

Skipping configuration: No configuration for Python or Visual Studio Build Tools required.
TypeError: Cannot read property 'then' of undefined
at install_1.install (D:\nodejs\node-global\node_modules\windows-build-tools\dist\start.js:19:17)
at launch_1.launchInstaller.then.then.then (D:\nodejs\node-global\node_modules\windows-build-tools\dist\install\index.js:34:9)
at process._tickCallback (internal/process/next_tick.js:68:7)

Most helpful comment

4.0.0 is ok

PS C:\WINDOWS\system32> npm install --global --production [email protected]

[email protected] postinstall D:\nodejs\node-global\node_modules\windows-build-tools
node ./dist/index.js

Downloading BuildTools_Full.exe
[============================================>] 100.0% of 3.29 MB (3.29 MB/s)
Downloaded BuildTools_Full.exe. Saved to C:\Users\cmd.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 ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Python 2.7.14 is already installed, not installing again.

Now configuring the Visual Studio Build Tools..

All done!

All 5 comments

4.0.0 is ok

PS C:\WINDOWS\system32> npm install --global --production [email protected]

[email protected] postinstall D:\nodejs\node-global\node_modules\windows-build-tools
node ./dist/index.js

Downloading BuildTools_Full.exe
[============================================>] 100.0% of 3.29 MB (3.29 MB/s)
Downloaded BuildTools_Full.exe. Saved to C:\Users\cmd.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 ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Python 2.7.14 is already installed, not installing again.

Now configuring the Visual Studio Build Tools..

All done!

I am also facing the same issue.

Same 4.0.0 also works for me

Same issue for me, may be this line in start.js:

environment_1.setEnvironment(variables) .then(() => process.exit(0))

May be dup of #152 and #164

may be this line in start.js:

That's part of the machine translated / compiled output that corresponds with:

https://github.com/felixrieseberg/windows-build-tools/blob/f2a146fde966cfac46e4bce75ea31d291821b938/src/start.ts#L15-L26

And the call to setEnvironment uses the following code to launch set-environment.ps1:

https://github.com/felixrieseberg/windows-build-tools/blob/e02b4ba426c343424728feecb10902f2d6946e25/src/environment.ts#L55-L57

JavaScript allows whitespace around the . (property accessor), so somePromise .then(...) is equivalent to somePromise.then(...). Is there something else about the above code that looks wrong?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anaisbetts picture anaisbetts  路  4Comments

DieselGaming picture DieselGaming  路  5Comments

d3x0r picture d3x0r  路  6Comments

jdalton picture jdalton  路  6Comments

keithnbrown picture keithnbrown  路  12Comments