异常: stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 解决方法: 清空 npm 缓存 cmd npm cache clean --force 管理员身份执行命令 cmd npm install --global --production windows-build-tools 安装成功提示! cmd --------- Visual Studio Build Tools ---------- Still waiting for installer log file... ------------------ Python -------------------- Successfully installed Python 2.7 注意 C:\Users\用户名\.windows-build-tools\python27 添加到系统环境变量 执行命令: cmd npm