strongloop组件:strong-oracle - >在ubuntu 15.10上的npm测试失败

时间:2016-01-20 12:38:43

标签: strongloop

我试图通过从github克隆最新的树顶来构建/测试强大的oracle:https://github.com/strongloop/strong-oracle/

我为我的机器安装了oracle即时客户端12.1,并在bashrc中设置环境变量,如下所示:

export OCI_LIB_DIR=/opt/instantclient_12_1
export OCI_INCLUDE_DIR=$OCI_LIB_DIR/sdk/include
export OCI_HOME=/opt/instantclient_12_1
export OCI_VERSION=12
export OCI_INCLUDE_DIR=/opt/instantclient_12_1/sdk/includeenter 
if [ -f ~/strong-oracle.rc ]; then
source ~/strong-oracle.rc
fi

root@pts00433-vm24:~/strong-oracle# node --version
v4.2.2
root@pts00433-vm24:~/strong-oracle# npm --version
2.14.7
root@pts00433-vm24:~/strong-oracle# nodejs --version
v0.10.25

现在使用npm install和npm test构建时,请参见下文。

root@pts00433-vm24:~/strong-oracle# npm install
npm WARN prefer global node-gyp@3.2.1 should be installed with -g
npm WARN cannot run in wd oracle@0.3.8 node-gyp rebuild (wd=/root/strong-oracle/node_modules/oracle)
npm WARN cannot run in wd strong-oracle@1.8.0 node-gyp rebuild (wd=/root/strong-oracle)

接下来在执行npm测试时,我遇到了以下错误:

    root@pts00433-vm24:~/strong-oracle# npm test
    > strong-oracle@1.8.0 pretest /root/strong-oracle
    > node pretest.js
    module.js:339
    throw err;
    ^
    Error: Cannot find module '../build/Debug/oracle_bindings'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/root/strong-oracle/lib/oracle.js:15:16)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
npm ERR! Test failed.  See above for more details

有关解决此问题的任何指示都会有所帮助。

0 个答案:

没有答案