Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

win10 ver17763.316 Could not install Visual Studio Build Tools. #175

Closed
Archer456 opened this issue Feb 14, 2019 · 5 comments · Fixed by #183
Closed

win10 ver17763.316 Could not install Visual Studio Build Tools. #175

Archer456 opened this issue Feb 14, 2019 · 5 comments · Fixed by #183

Comments

@Archer456
Copy link

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)

@Archer456
Copy link
Author

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!

@ArghyaRoyC
Copy link

I am also facing the same issue.

@blowsie
Copy link

blowsie commented Apr 4, 2019

Same 4.0.0 also works for me

@dr3x
Copy link
Contributor

dr3x commented Apr 17, 2019

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

@jacobq
Copy link
Collaborator

jacobq commented Apr 17, 2019

may be this line in start.js:

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

// The dumbest callbacks. All other methods resulted
// in stacks that we're too deep and errored out on some
// machines.
aquireInstallers(() => {
install((variables: InstallationDetails) => {
setEnvironment(variables)
.then(() => process.exit(0))
.catch(() => process.exit(1));
});
})
.catch(console.error);
}

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

return executeChildProcess('powershell.exe', args)
.then(() => log(chalk.bold.green(`\nAll done!\n`)))
.catch((error) => debug(`Encountered environment setting error: ${error}`));

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants