首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >nodejs_'npm install oracle‘发生错误

nodejs_'npm install oracle‘发生错误
EN

Stack Overflow用户
提问于 2014-10-22 15:44:37
回答 4查看 1.1K关注 0票数 0

在nodejs上安装oracle时出现错误。我正在按照这个站点(https://github.com/joeferner/node-oracle)中编写的步骤操作,最后,'npm install oracle‘不起作用。

我下载了python2.7.8,桌面版的visual studio express 2012,以及即时客户端(basic和sdk)在同一个名为"Project“的目录中,还在我的笔记本电脑中设置了环境变量。

下面是发生的错误。

代码语言:javascript
复制
C:\dev\Project>npm install oracle
npm WARN package.json Express-web-app@1.0.0 No description
npm WARN package.json Express-web-app@1.0.0 No repository field
npm WARN package.json fs@0.0.2 fs is also the name of a node core module.
npm WARN package.json fs@0.0.2 fs No description
npm WARN package.json fs@0.0.2 fs No repository field
-
> oracle@0.3.7 install C:\dev\Project\node_modules\oracle
> node-gyp rebuild


C:\dev\Project\node_modules\oracle>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python2.7.8", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
enter code here
gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\dev\Project\node_modules\oracle
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! oracle@0.3.7 install: 'node-gyp rebuild'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oracle@0.3.7 install script.
npm ERR! This is most likely a problem with the oracle 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 their info via:
npm ERR!     npm owner ls oracle
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "oracle"

我不知道为什么错误会说‘找不到python executable.....brr’...

EN

回答 4

Stack Overflow用户

发布于 2014-10-22 16:07:52

尝试使用本教程设置python系统变量:http://www.katsbits.com/tutorials/blender/python-path-variable.php

票数 0
EN

Stack Overflow用户

发布于 2014-12-17 10:14:06

看起来你是在Windows上运行。

如果它能工作,请看我在https://github.com/joeferner/node-oracle/issues/140#issuecomment-67266788上的评论。用这种方法让我的机器正常工作。但是,由于您没有使用Ubuntu Server x64 14.10LTS。

您可能需要将/etc/environment转换为Windows路径。

尝试在虚拟机上安装,以便在社区驱动的支持环境操作系统上运行节点应用程序。

如果你决定在Ubuntu上运行即时客户端,我已经使用了这篇指南来安装即时客户端并编译oci8 https://help.ubuntu.com/community/PHPOracle

我为这个做了一个要点。https://gist.github.com/ChaosPower/e533c0542ad0def26cfb

请告诉我,如果它工作,如果不是,让我尝试复制您的。

票数 0
EN

Stack Overflow用户

发布于 2015-10-08 12:11:39

不能直接回答您的问题,但如果您熟悉C#,另一种选择是调用.NET in-process并利用.NET的成熟数据库生态系统。请参阅我的答案here

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26502514

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档