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

posted on 2020-02-20 17:55  滚动的蛋  阅读(13209)  评论(0编辑  收藏  举报

导航