安装项目依赖的时候报 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.
在这里插入图片描述

解决方法

安装

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

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


版权声明:本文为weixin_41891519原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。