Node cannot get oracle service.

  node.js, question

Node cannot get oracle service.

clipboard.png

clipboard.png
Oracle Package Installed Successfully

clipboard.png
Node version

clipboard.png
Npm version

clipboard.png

Python  version

We will never find a rookie oracle module . Solve! ! !

clipboard.png

Looking at your first picture, is oracledb compiled? Can connect.js and dbconfig.js of the official website run?
图片描述

图片描述

Connect.js will be moved completely. The username of dbconfig.js inside will be changed to the username/password of your oracle database. I am using XE version, and you will change localhost according to your oracle version.
Both files are placed on your project at the same level as app.js run nodeconnect.js.
The following is the output:
图片描述
https://github.com/oracle/node-oracledb/blob/master/examples/connect.js
https://github.com/oracle/node-oracledb/blob/master/examples/dbconfig.js

Can’t get the package, you try to copy oracledb.node of oracldb’s package inside from the build Release directory to the directory at the same level as build, and then run it again.
图片描述