簡體   English   中英

npm 錯誤:oracledb 錯誤! NJS-067:未找到用於 darwin arm64 的預構建 node-oracledb 二進制文件

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

我有這個錯誤

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

我的環境是node v14.18.1 npm v6.14.15 "oracledb": "^4.2.0", macbook pro 2020 m1

我是從二進制代碼安裝的,它對我有用

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

特別是關於 Apple M1,這是一個“已知”問題。

以下解決方案對我有用:您可能使用 nvm 或 brew 安裝了 node,這樣您將安裝 arm64 版本並收到此錯誤。 目前唯一的解決辦法是直接從主頁下載安裝node。

請閱讀以下內容以供參考: https://github.com/oracle/node-oracledb/issues/1349

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM