You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, there is an error, repeated by many, causing that on Windows (and maybe other systems, too) simple require like this:
const oracle = require( 'oracledb' ) ;
ends with the following confusing error message:
Error: The specified module could not be found.
\\?\C:\DEV\dbtools\node_modules\oracledb\build\Release\oracledb.node
at Object.Module._extensions..node (module.js:664:18)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\DEV\@EIT\dbtools\node_modules\oracledb\lib\oracledb.js:35:19)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
The problem is that it is not oracledb.node that can't be found, but oci.dll and the root cause is that PATH does not include the directory where oci.dll is located.
I would like to suggest to implement at least one of these features:
add more specific error message when loading oracledb.node, so that it properly identifies it is not the node module that is missing, but one of the libraries it references,
add some option into module configuration that would allow to detect or specify the location of oci.dll either implicitly during install, or explicitly during module load.
Answer the following questions:
What is your version of Node.js? node 8.9.1 win32 x64
What version of node-oracledb are you using? version 1.13.1
What is the version of your Oracle client (e.g. Instant Client)? How was it installed? Where it is installed? version 12.2.0.1 win32 x64 installed from ZIP into c:\oracle\instantclient_12_2
What is the version of Oracle Database?
Does not matter, because the module does not load at all.
What is your OS and version?
Windows 10 (1511) Professional x64
What compiler version did you use? For example, with GCC, run gcc --version
windows build tools 1.3.2 (installed via npm install -g windows-build-tools)
What environment variables did you set? How exactly did you set them?
PATH=... (does not contain oracle instantclient directory)
ORACLE_HOME=C:\oracle\instantclient_12_2
The text was updated successfully, but these errors were encountered:
The recent v2.0.14-dev tag includes the proposed binary install scripts, which also try and lead people in the right direction about installing dependencies.
I'm going to close this issue since the problem is understood and we know the steps to take. Thanks for reporting it.
Hello, there is an error, repeated by many, causing that on Windows (and maybe other systems, too) simple require like this:
ends with the following confusing error message:
The problem is that it is not oracledb.node that can't be found, but oci.dll and the root cause is that PATH does not include the directory where oci.dll is located.
I would like to suggest to implement at least one of these features:
Answer the following questions:
What is your version of Node.js? node 8.9.1 win32 x64
What version of node-oracledb are you using? version 1.13.1
What is the version of your Oracle client (e.g. Instant Client)? How was it installed? Where it is installed? version 12.2.0.1 win32 x64 installed from ZIP into c:\oracle\instantclient_12_2
What is the version of Oracle Database?
Does not matter, because the module does not load at all.
What is your OS and version?
Windows 10 (1511) Professional x64
What compiler version did you use? For example, with GCC, run
gcc --version
windows build tools 1.3.2 (installed via npm install -g
windows-build-tools
)What environment variables did you set? How exactly did you set them?
The text was updated successfully, but these errors were encountered: