If you have trouble installing better-sqlite3
, follow this checklist:
-
Make sure you're using nodejs v10.20.1 or later
-
Make sure you have
node-gyp
globally installed, including all of its dependencies. On Windows you may need to configure some things manually. -
If you're using Electron, try running
electron-rebuild
-
If you're using Windows, follow these steps. Do them in this order, and don't skip steps.
- Install the latest of node 10, 12, or 14.
- Install latest Visual Studio Community and Desktop Development with C++ extension.
- Install latest Python.
- Run following commands:
npm config set msvs_version 2019 npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"
- Run
npm install
If none of these solved your problem, try browsing previous issues or open a new issue.