天天看点

成功解决gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta

成功解决gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta

目录

解决问题

解决思路

解决方法

确保文件存在的gyp动词:c:\python27\python.exe gyp err!配置错误Gyp错误!

      切记,因为我电脑上已经安装由python3.6了。环境要求python2的版本,具体为什么不用python3,我特么也纳闷,也不太清为什么必须是python2,python3版本就是不行,所以,还是重新安装python2吧……

两种方法搞定!

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

T2、自行下载

npm install --python=python2.7     #先下载

npm config set python python2.7   #再设置环境

成功解决gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta