gyp ERR! stack Error: Can‘t find Python executable ‘python‘

以你之姓@ 2023-01-17 04:42 298阅读 0赞

gyp ERR! configure error gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.

  1. gyp ERR! configure error
  2. gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
  3. gyp ERR! stack at PythonFinder.failNoPython
  4. gyp ERR! stack at PythonFinder.<anonymous> )
  5. gyp ERR! stack at callback
  6. gyp ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
  7. gyp ERR! System Windows_NT 10.0.18363

npm install的时候出现这个报错其实就是缺少组件 我们需要安装一下Python2.7(ps3.0好像不行)

install前复制这俩进去再试试

  1. npm config set python python2.7
  2. npm config set msvs_version 2015

芜湖~然后就解决了

20210426234808153.png

发表评论

表情:
评论列表 (有 0 条评论,298人围观)

还没有评论,来说两句吧...

相关阅读