blpapi的节点安装

时间:2018-11-12 12:11:56

标签: node.js bloomberg blpapi

我正在运行节点v9.1。我想使用Bloomberg SAPI查询最近的价格。我在npm上找到了blpapi-npm软件包,然后尝试安装它。

我在项目目录中运行了安装命令'npm install blpapi'。安装程序返回以下错误。在安装blpapi之前是否需要安装其他库或先决条件?

                     ^
8 warnings and 8 errors generated.
make: *** [Release/obj.target/blpapijs/blpapijs.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:135:13)
gyp ERR! stack     at ChildProcess.emit (events.js:224:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/michaelwhite/Documents/xcodeDevelopment/Node/In4mApollo/node_modules/blpapi
gyp ERR! node -v v9.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN In4mApollo@1.0.0 No description
npm WARN In4mApollo@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blpapi@1.2.0 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the blpapi@1.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/michaelwhite/.npm/_logs/2018-11-12T12_02_14_257Z-debug.log

0 个答案:

没有答案