Reputation: 73
Trying to execute react-native init AwesomeProject
but i get a frustrating error:
> [email protected] install C:\Users\Yuval\AwesomeProject\node_modules\utf-8-validate
> node-gyp rebuild
C:\Users\**myName**\AwesomeProject\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers
ion in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\**myName**\
AwesomeProject\node_modules\utf-8-validate\build\validation.vcxproj]
I have installed: Visual C++ Build tools 2015 Node.js - 6.2.2 Python 2.7 node-gyp 3.3.1
Really appreciate your help!
Upvotes: 0
Views: 6268
Reputation: 73
Ok , thanks to the user "Ramhound" problem is solved. What i did:
Reinstalled visual c++ build tools 2015 while fixing their missing parts using links from here
Pointing out MSBuild.exe location in environment variables "PATH" variable.
npm -g install npm@next
Upvotes: 2
Reputation: 1264
Run :
npm cache clean
also verify python must be in your path variables.
Upvotes: 0