【发布时间】:2023-03-31 05:41:01
【问题描述】:
我有这个错误
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
我的环境是 节点 v14.18.1 npm v6.14.15 "oracledb": "^4.2.0", macbook pro 2020 平方米
【问题讨论】:
-
Oracle Instant Client 没有 M1 端口,因此您需要在 Rosetta 中使用 x86 堆栈(包括 Node.js)。见github.com/oracle/node-oracledb/issues/1349
-
请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。
-
供参考,您的重复帖子stackoverflow.com/questions/70064150/…有解决方案
标签: node.js npm node-oracledb