Onur Yüksekkaya
Onur Yüksekkaya

Reputation: 109

npm ERR! oracledb ERR! NJS-067: a pre-built node-oracledb binary was not found for darwin arm64

I have this error

npm ERR! path /Users/honor/Documents/mycompany/node_modules/oracledb
npm ERR! command failed
npm ERR! command sh -c node package/install.js
npm ERR! oracledb ERR! NJS-067: a pre-built node-oracledb binary was not found for darwin arm64
npm ERR! oracledb ERR! Try compiling node-oracledb source code using https://oracle.github.io/node-oracledb/INSTALL.html#github

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/honor/.npm/_logs/2021-11-19T09_09_49_590Z-debug.log

My environment is node v14.18.1 npm v6.14.15 "oracledb": "^4.2.0", macbook pro 2020 m1

Upvotes: 2

Views: 14240

Answers (3)

Bản Võ Văn
Bản Võ Văn

Reputation: 1

I also have issues when I work with Oracle. Because node-oracleDb is unsupported for arm64 in version old. You should update the version of node-oracleDB lastest. after, let's follow to link: https://node-oracledb.readthedocs.io/en/latest/user_guide/installation.html#installing-github-clones-and-zip-files (2.8.1. Installing GitHub Clones and ZIP Files)

Upvotes: 0

Vaibhav Jain
Vaibhav Jain

Reputation: 779

Regarding Apple M1 specifically, it is a 'known' issue.

Below solution worked for me: You probably installed node with either nvm or brew, by doing that you will install the arm64 version and get this error. The only solution for now is to download and install node from the homepage directly.

Read below for reference: https://github.com/oracle/node-oracledb/issues/1349

Upvotes: 0

Onur Yüksekkaya
Onur Yüksekkaya

Reputation: 109

I installed from binary code and it's work for me (it depends on your oracledb version)

"oracledb": "https://github.com/oracle/node-oracledb/releases/download/v4.2.0/oracledb-src-4.2.0.tgz"

Upvotes: 9

Related Questions