electron-rebuild编译出错

问题遇到的现象和发生背景

electron 安装ffi-napi 使用rebuild编译,不成功总是报这个错。python的环境我已经装了,并配置了环境变量,提示找不到python环境



PS D:\electron\sportsability> .\node_modules\.bin\electron-rebuild.cmd
× Rebuild Failed

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'D:\electron\sportsability\node_modules\ffi-napi'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: Could not find any Python installation to use

PS D:\electron\sportsability> python
Python 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 

重装python,修改npmrc文件都不行。