stack Error: Can't find Python executable "python", you can set
解决:
【亲测成功】
1. 终端中运行 npm install --global --production windows-build-tools
2. 终端中运行 npm config set python python2.7
如果还是有问题,
上面的命令安装python, 但node-pty没能找到, 当它没找到python时, 会默认访问 `C:\Python27\python.exe`;
所以我们将上面安装的 python 修改文件夹名并复制到 C盘下:

问题:
`gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1`
1. npm install --global --production windows-build-tools
2. npm config set msvs_version 2017
如果还有错,在项目目录下运行:npm install node-pty