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)
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:
And the call to setEnvironment uses the following code to launch set-environment.ps1:
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?
Most helpful comment
4.0.0 is ok
PS C:\WINDOWS\system32> npm install --global --production [email protected]
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!
updated 1 package in 94.299s