I’m trying to install msnodesqlv8 on a machine that cannot install Python (so I can’t build msnodesqlv8?) but I’m having a problem.
The machine is using node v22.11.0 (Node API v127, if I understand correctly) so I’ve downloaded [msnodesqlv8-v4.5.0-node-v127-win32-x64.tar.gz] containing a single file (sqlserverv8.node).
I’ve copied this file to “.\addons\sqlserverv8.node” next to my “.\dbclient.js” and I’ve trying the following:
const sql = require(‘./addon/sqlserverv8’)
That appears to work but the methods such as sql.connect (and all the others) do not exist.
What am I doing wrong?