繁体   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