Mac OS X下如何安装node-oracledb?

发布于 2022-09-02 12:37:07 字数 934 浏览 13 评论 0

Mac OS X下如何安装node-oracledb?
错误提示

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "oracledb"
npm ERR! node v5.7.1
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE

npm ERR! oracledb@1.8.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oracledb@1.8.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oracledb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs oracledb
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls oracledb
npm ERR! There is likely additional logging output above.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

青芜 2022-09-09 12:37:08

错误提示很明白,地址https://registry.npmjs.org/node-oracledb不存在,没有node-oracledb这个npm包,确定一下你要安装的模块名到底是什么

天冷不及心凉 2022-09-09 12:37:08

你检查下所有的错误日志

是不是这下面这端类似文字出现

node-oracledb ERR! Error: Cannot find /opt/oracle/instantclient/libclntsh.dylib
node-oracledb ERR! Error: Do you need to run 'cd /opt/oracle/instantclient && ln -s libclntsh.dylib.* libclntsh.dylib'?
node-oracledb ERR! Error: See https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx

如果有的话,应该就是 Oracle 驱动之类的信息没有配置好。
可以参考这篇文章来安装,OSX 10.10.2 安装编译node-oracle 及 oracle 官方nodejs 驱动 - satanrabbit的个人页面 - 开源中国社区

又爬满兰若 2022-09-09 12:37:08

node-oracle安装教程 linux和windows www.icafebolger.com/nodejs/nodeoracle.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文