当使用npm安装的时候提示报错:Can’t find Python executable “python”, you can set the PYTHON env variable.提示缺少python环境。
可尝试以下方法修复:
- 安装windows-build-tools:
npm install --global --production windows-build-tools
- 安装node-gyp
npm install --global node-gyp
*方法来源:网络搜索