gyp ERR! find Python


yarn install 安装依赖报错如下:

  gyp ERR! find Python
  gyp ERR! find Python Python is not set from command line or npm configuration

  gyp ERR! find Python Python is not set from environment variable PYTHON
  gyp ERR! find Python checking if \"python\" can be used
  gyp ERR! find Python - executable path is \"C:\\Program Files\\Python37\\python.exe\"
  gyp ERR! find Python - version is \"3.7.0\"
  gyp ERR! find Python - version is 3.7.0 - should be >=2.6.0 <3.0.0

解决方法:

    下载python2.7 安装即可

 

最新解决方案:

    管理员权限打开执行:npm install --global --production windows-build-tools


免责声明!

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



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