Requirements.
vitaliylag opened this issue · 0 comments
vitaliylag commented
There are specified not all requirements. If you just install "windows-build-tools" and "Visual C++ Redistributable Package per Visual Studio 2013" and even MSBuild, that will not be enogh (at least in Windows 8.1). When you try to run "npm install -S libui-node" you will get MSBuild error. It seems like "windows-build-tools" does not help to install libui-node.
I could install libui-node after doing this things:
- Install "Visual Studio Community 2017" (free). I guess Visual Studio 2015 will be OK too.
- In VS install "VC++ 2015.3 v14.00 (v140) toolkit"
- In VS install "Windows 8.1 SDK"
- In VS install "Windows Universal CRT SDK"
- Install MSBuild 2015.
- Run command "npm config set msvs_version 2015"
- Every time after opening a console run command "set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140"
or to not running command every time execute or import this reg file as administator:or:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\14.0] "VCTargetsPath"="$([MSBuild]::ValueOrDefault('$(VCTargetsPath14)','$(MSBuildExtensionsPath32)\\Microsoft.Cpp\\v4.0\\V140\\'))"
- open regedit
- go to the "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\14.0"
- and create string key "VCTargetsPath" with value "$([MSBuild]::ValueOrDefault('$(VCTargetsPath14)','$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\V140'))" (without quotes).
Please add it all to requirements. I needed to spend much time to find and understand it by myself. All steps are needed.