安装
准备:需要python3环境
sh
# 安装 node-gyp
npm i node-gyp -g
# 安装 构建工具
npm install --save-dev @electron/rebuild
# (必须)重新构建适合当前操作系统的sqlite
npm i better-sqlite3@8.4.0
npm run re-sqlite
# 如果sqlite报错 ...tools之类的
npm --vs2015 i -g --production windows-build-tools
# 或
npm i -g --production windows-build-tools
# 或 删除整个node_modules,重新安装
# 或 重新安装 Visual Studio Community
linux 环境
出现 gyp ERR! stack Error: not found: make
安装 build-essential 包
sudo apt-get install build-essential