解决报错Error: Can‘t find Python executable “python“, you can set the PYTHON env variable

在执行npm install 命令的时候 有时会报Error: Can’t find Python executable “python”, you can set the PYTHON env variable的 错误
在这里插入图片描述
以windows为例 ,解决方案,以管理员权限打开cmd窗口,运行
npm install --global --production windows-build-tools 命令可解决该错误
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_38384994/article/details/107159596
今日推荐