安装项目依赖的时候报 Error: Can't find Python executable "python", you can set the PYTHON env variable. 的解决方法。

问题描述

Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
安装项目依赖的时候报 Error: Can't find Python executable

解决方法

安装

npm install --global --production windows-build-tools
npm install --global node-gyp

安装完后,把原本的以来删除后再npm install 就可以安装不报错啦。

你可能感兴趣的:(git,yarn,依赖,Python,npm,install,报错,yarn,报错)