0

I'm facing an issue that can't connect to oracle DB. enter image description here If I use an example from oracledb that works fine. As message error said, I tried npm rebuild or npm install

I read and did this already nodejs error

However, there are still errors.

This is my project dir:

enter image description here

I'm using oracledb: version": "2.3.0"

Please help me.

MT0
  • 143,790
  • 11
  • 59
  • 117

1 Answers1

0

Seeing as how you're in C:\Users\xuanh\Downloads\vhrm, I'm guessing you downloaded a zip file, extracted the contents, and then tried to run the app. The person that zipped the files was likely using a different platform (Mac, Linux, etc.) or a different version of Node.js than you are. Try deleting C:\Users\xuanh\Downloads\vhrm\node_modules\oracledb and then rerun npm install.

Dan McGhan
  • 4,479
  • 1
  • 11
  • 15
  • You're right. My co-worker sent it to me as zip file. I already deleted then run `npm install`. However, there are still error. – Nguyễn Minh Vương Sep 25 '18 at 13:57
  • Did you install the instant client libraries that the driver depends on? I think this is the install doc you need: https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instwin – Dan McGhan Sep 25 '18 at 15:05
  • I installed it. Note: I can run the example that I got from oracle github – Nguyễn Minh Vương Sep 26 '18 at 02:28
  • If you can run the example, then you should be good to go. Something must be different from when you run the example and when you run your code. What directory are you in when you run the example? – Dan McGhan Sep 26 '18 at 14:32