File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,17 @@ function done(err, alreadyInstalled) {
338
338
const installUrl = 'https://oracle.github.io/node-oracledb/INSTALL.html' ;
339
339
340
340
if ( err ) {
341
- packageUtil . error ( err . message ) ;
342
341
packageUtil . error ( 'NJS-054: Binary build/Release/oracledb.node was not installed.' ) ;
343
- packageUtil . error ( 'Looked for pre-built binary package ' + packageUtil . dynamicProps . PACKAGE_FILE_NAME ) ;
344
- packageUtil . error ( 'See Troubleshooting Node-oracledb Installation Problems at ' + installUrl + '#troubleshooting\n' ) ;
342
+ if ( [ 'darwin' , 'win32' , 'linux' ] . indexOf ( process . platform ) < 0 ) {
343
+ packageUtil . error ( 'Pre-built binary packages are not available for platform="' + process . platform + '"' ) ;
344
+ } else if ( process . arch !== 'x64' ) {
345
+ packageUtil . error ( 'Pre-built binary packages are not available for architecture="' + process . arch + '"' ) ;
346
+ } else if ( [ '46' , '48' , '57' , '59' ] . indexOf ( process . versions . modules ) < 0 ) {
347
+ packageUtil . error ( 'Pre-built binary packages are not available for this version of Node.js (NODE_MODULE_VERSION="' + process . versions . modules + '")' ) ;
348
+ }
349
+ packageUtil . error ( 'Failed to install binary package ' + packageUtil . dynamicProps . PACKAGE_FILE_NAME ) ;
350
+ packageUtil . error ( err . message ) ;
351
+ packageUtil . error ( 'For help see ' + installUrl + '#troubleshooting\n' ) ;
345
352
process . exit ( 87 ) ;
346
353
} else {
347
354
let arch ;
You can’t perform that action at this time.
0 commit comments