更新时间:2022-05-27 22:09:33
我通过使用电子重建
首次安装:
npm install --save-dev electronic-rebuild
npm install --save-dev electronic-prebuilt
然后在您的 package.json
添加脚本:
rebuild: electron-rebuild -f -w sqlite3 -v 1.X
并运行
npm运行重建
我不得不运行几次,将 -v
更改为所需的版本, 1.2、1.4或1.6
I had to run it several times, changing the -v
to the version needed, 1.2, 1.4 or 1.6