docs/troubleshooting.md
If better-sqlite3 refuses to install, follow these guidelines:
better-sqlite3 is only tested with currently-supported versions of Node.js.If you're on Windows, during installation of Node.js, be sure to select "Automatically install the necessary tools" from the "Tools for Native Modules" page.
If you missed this when you installed Node.js, double-click C:\Program Files\nodejs\install_tools.bat from the File Explorer or run it in a terminal.
This will open an administrative PowerShell terminal and installing Chocolatey, Visual Studio, and Python.
This may take several minutes.
node-gyp may not escape spaces or special characters (like % or $) properly.If you're using Electron, use electron-rebuild.
If you're using an app.asar bundle, be sure all native libraries are "unpacked". If you're using electron-forge, you should use the auto-unpack-natives plugin
If you still have issues, try these steps:
node_modules subdirectory$HOME/.node-gyp directorynpm installBrowse previous installation issues.