## 安装ffi

```bash
chcp 65001
set PATH=%APPDATA%\nvm\v18.16.0;%PATH%
set PATH=%APPDATA%\nvm\v16.16.0;%PATH%
set PATH=D:\Python\Python2718;%PATH%
set PYTHON_PATH=D:\Python\Python2718
set PYTHON_PATH=D:\Python\Python2718\python.exe
set PYTHONPATH=D:\Python\Python2718
set PYTHONPATH=D:\Python\Python2718\python.exe
npm install ffi

```

https://github.com/waitingsong/node-win32-api/releases


#### node-ffi从入门到放弃(安装篇)
https://www.cnblogs.com/onesea/p/15879795.html
快速导读
> npm i -g windows-build-tools // 下载windows-build-tools
> npm config set msvs_version 2017 // 设置msvs_version,同时可以使用npm config list 查看python是否指向2.7版本
> npm i -g node-gyp // 下载node-gyp
> npm i ffi --save
// electron 添加
> npm i electron-rebuild -D
> electron-rebuild