解决: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

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

解决

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

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM