npm install项目时,一直报找不到python.exe,就先安装了python 2.7.X,后来又报error MSB3411: Could not load the Visual C++ component “VCBuild.exe”. If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Vis
ual Studio 2008.
使用管理员身份运行cmd,
在命令行执行如下命令:
npm install --global --production windows-build-tools
之后在项目中,执行
npm config set msvs_version 2017
npm install --msvs_version=2017
即可install成功!