So I ran npm install --global windows-build-tools
thing as an administrator and it said that I have successfully installed python 2.7.
But then when I tried electron-rebuild -f -w sqlite3
after npm i sqlite3
it gives me this error.
× Rebuild Failed
An unhandled error occurred inside electron-rebuild
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\newub\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax