解决:Error: Can't find Python executable "python", you can set the PYTHON env variable

问题
我们在执行 npm install 命令的时候有时会遇到错误

image

进而导致安装部分包错误,今天带大家简单快捷地100%解决这个问题

解决
已 windows 平台为例,管理员权限执行以下命令,安装完即可:

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

其他平台遇到这个问题请访问 https://github.com/nodejs/node-gyp

posted @ 2022-05-06 21:06  风中凌猿  阅读(263)  评论(0编辑  收藏  举报