DeepinLinux下为electron安装sqlite3

2018/09/30

https://newsn.net/say/electron-install-sqlite3.html

一行命令,从源码编译安装

npm install sqlite3@latest --build-from-source --runtime=electron --target=3.0.1 --dist-url=https://atom.io/download/electron --save

--target为electron的版本号。 不添加--dist-url参数会报错,但我原先已经在项目中通过npm install electron --save-dev安装过electron了,所以无法验证。