Search code examples
node.jsnpmnode-oracledb

Unable to install [email protected]


I have a nodejs project and when I run npm i I run into the following error:

oracledb ERR! NJS-067: a pre-built node-oracledb binary was not found for Node.js v12.13.0 (NODE_MODULE_VERSION=72) on darwin x64
oracledb ERR! Try compiling node-oracledb source code using https://oracle.github.io/node-oracledb/INSTALL.html#github

I have tried updating the package.json to include "oracledb": "github:oracle/node-oracledb#v4.0.1" but it continues to show [email protected] install. I tried running npm uninstall oracledb as well but also caused the same error.

NodeJs v: 12.13.0 Python: 2.7.10


Solution

  • In the end i downgraded NodeJs to version 8.x.x (or less than 12.x.x) as there is no pre-built node-oracledb binary for Node.js v12.13.0. Then I ran npm i again and it worked.