'Node.js Oracle installation error "NJS-045: cannot load a node-oracledb binary"

I am trying to use oracle instant client (https://download.oracle.com/otn_software/nt/instantclient/213000/instantclient-basic-windows.x64-21.3.0.0.0.zip) with the node js version 16.15.0 in windows 10. After installed both and successfully set the environment variable path, when I run my file, am getting error like

"Error: NJS-045: cannot load a node-oracledb binary for Node.js 16.15.0 (win32 x64) Looked for C:\project\node_modules\oracledb\build\Release\oracledb-abi93-win32-x64.node, C:\project\node_modules\oracledb\build\Release\oracledb.node, C:\project\node_modules\oracledb\build\Debug\oracledb.node"

But if I change the node js version into lower version like 10, it is working fine. Anyone know how to solve the issue, and let us why it occurs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source