试图执行react-native init AwesomeProject
,但我得到一个令人沮丧的错误:阵营本地项目初始化错误(窗口)
> [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]
我已经安装: 的Visual C++编译工具,2015年 的Node.js - 6.2.2 Python 2.7版 node-gyp 3.3.1
非常感谢您的帮助!
它看起来像你没有Windows SDK版本8.1的系统上安装节点GYP到最新版本。你有没有试过安装它? –
Windows SDK 8.1实际上是安装的,我在注册表中也检查过。 –
Visual Studio认为不然,根据错误 –