{"action":"created","issue":{"url":"https://api.github.com/repos/bloomberg/blpapi-node/issues/77","repository_url":"https://api.github.com/repos/bloomberg/blpapi-node","labels_url":"https://api.github.com/repos/bloomberg/blpapi-node/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/bloomberg/blpapi-node/issues/77/comments","events_url":"https://api.github.com/repos/bloomberg/blpapi-node/issues/77/events","html_url":"https://github.com/bloomberg/blpapi-node/issues/77","id":194745016,"number":77,"title":"Issue when \"node-gyp configure build\"","user":{"login":"Bondifrench","id":4905917,"avatar_url":"https://avatars.githubusercontent.com/u/4905917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bondifrench","html_url":"https://github.com/Bondifrench","followers_url":"https://api.github.com/users/Bondifrench/followers","following_url":"https://api.github.com/users/Bondifrench/following{/other_user}","gists_url":"https://api.github.com/users/Bondifrench/gists{/gist_id}","starred_url":"https://api.github.com/users/Bondifrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bondifrench/subscriptions","organizations_url":"https://api.github.com/users/Bondifrench/orgs","repos_url":"https://api.github.com/users/Bondifrench/repos","events_url":"https://api.github.com/users/Bondifrench/events{/privacy}","received_events_url":"https://api.github.com/users/Bondifrench/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-10T04:54:18Z","updated_at":"2016-12-12T11:21:22Z","closed_at":"2016-12-12T11:21:22Z","body":"Hi,\r\n\r\nafter successfully installing the [windows build tools](https://github.com/felixrieseberg/windows-build-tools) and trying to install `blpapi`, I got the following error:\r\n````\r\nnpm install --save blpapi\r\nnpm WARN package.json financejs@0.0.1 No repository field.\r\n/\r\n> blpapi@1.2.0 install c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\r\n> node-gyp configure build\r\n\r\n\r\nc:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi>if not defined npm_config_node_gyp (node \"c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" configure build )  else (node  configure build )\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n  blpapijs.cpp\r\n..\\blpapijs.cpp(176): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(621): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module s\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(719): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module s\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(785): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module s\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(828): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module s\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(940): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module s\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(961): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(989): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1002): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs \\node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1057): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs \\node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1136): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_modul es\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1249): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_modul es\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1263): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1281): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\node _modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1290): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1402): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\node _modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1616): warning C4244: 'argument': conversion from '__int64' to 'const int', possible loss of data [c:\\Users\\London\\Apps\\finance js\\node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n..\\blpapijs.cpp(1630): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\node _modules\\blpapi\\build\\blpapijs.vcxproj]\r\n  win_delay_load_hook.c\r\nc:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\src\\win_delay_load_hook.c(31): error C2373: '__pfnDliNotifyHook2': redefinition;  different type modifiers [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n  C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include\\delayimp.h(134): note: see declaration of '__pfnDliNotifyHook2'\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onExit (c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Windows_NT 6.3.9600\r\ngyp ERR! command \"c:\\\\Program Files\\\\nodejs\\\\node.exe\" \"c:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"configure\" \"build\"\r\ngyp ERR! cwd c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\r\ngyp ERR! node -v v4.2.3\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok\r\nnpm ERR! Windows_NT 6.3.9600\r\nnpm ERR! argv \"c:\\\\Program Files\\\\nodejs\\\\node.exe\" \"c:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"--save\" \"blpapi\" npm ERR! node v4.2.3\r\nnpm ERR! npm  v2.14.7\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! blpapi@1.2.0 install: `node-gyp configure build`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the blpapi@1.2.0 install script 'node-gyp configure build'.\r\nnpm ERR! This is most likely a problem with the blpapi package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp configure build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls blpapi\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     c:\\Users\\London\\Apps\\financejs\\npm-debug.log\r\n````\r\n\r\nIt seems this: \r\n````\r\nc:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\src\\win_delay_load_hook.c(31): error C2373: '__pfnDliNotifyHook2': redefinition;  different type modifiers [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build\\blpapijs.vcxproj]\r\n  C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include\\delayimp.h(134): note: see declaration of '__pfnDliNotifyHook2'\r\n````\r\nseems to cause the problem, any advice?\r\n\r\nI saw that [error referenced here](https://github.com/nodejs/node-gyp/issues/972) that asks to install `npm@next`, which I did, but still got the same error at the end of the day.\r\n\r\nWould appreciate feedback, thx"},"comment":{"url":"https://api.github.com/repos/bloomberg/blpapi-node/issues/comments/266404098","html_url":"https://github.com/bloomberg/blpapi-node/issues/77#issuecomment-266404098","issue_url":"https://api.github.com/repos/bloomberg/blpapi-node/issues/77","id":266404098,"user":{"login":"Bondifrench","id":4905917,"avatar_url":"https://avatars.githubusercontent.com/u/4905917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bondifrench","html_url":"https://github.com/Bondifrench","followers_url":"https://api.github.com/users/Bondifrench/followers","following_url":"https://api.github.com/users/Bondifrench/following{/other_user}","gists_url":"https://api.github.com/users/Bondifrench/gists{/gist_id}","starred_url":"https://api.github.com/users/Bondifrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bondifrench/subscriptions","organizations_url":"https://api.github.com/users/Bondifrench/orgs","repos_url":"https://api.github.com/users/Bondifrench/repos","events_url":"https://api.github.com/users/Bondifrench/events{/privacy}","received_events_url":"https://api.github.com/users/Bondifrench/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T11:21:21Z","updated_at":"2016-12-12T11:21:21Z","body":"Thanks @apaprocki ,\r\nAs I said earlier I did `npm -g install npm@next` before but for some reason, it did not actually update npm.\r\nI believe it has to with the `Roaming` folder as described [here](https://github.com/npm/npm/wiki/Troubleshooting), at the end, I had to upgrade my version of `Node` and then I got the latest version of `NPM`.\r\nA line in the docs might be handy.\r\n\r\nThe installation of `blpapi-node` was successful afterwards.\r\n\r\nJust to let you know, there are lots of warnings coming with the installation:\r\n````\r\n> blpapi@1.2.0 install c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi                                                                       \r\n> node-gyp configure build                                                                                                                      \r\n                                                                                                                                                \r\n                                                                                                                                                \r\nc:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi>if not defined npm_config_node_gyp (node \"C:\\Users\\London\\AppData\\Roaming\\npm\\node_modules\\np\r\nm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" configure build )  else (node \"\" configure build )                             \r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.                                     \r\n  blpapijs.cpp                                                                                                                                  \r\n  win_delay_load_hook.cc                                                                                                                        \r\n..\\blpapijs.cpp(176): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ \r\nnode_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                     \r\n..\\blpapijs.cpp(559): warning C4996: 'v8::Value::ToInt32': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build\\bl \r\npapijs.vcxproj]                                                                                                                                 \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(8202): note: see declaration of 'v8::Value::ToInt32'                                        \r\n..\\blpapijs.cpp(621): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module \r\ns\\blpapi\\build\\blpapijs.vcxproj]                                                                                                                \r\n..\\blpapijs.cpp(719): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module \r\ns\\blpapi\\build\\blpapijs.vcxproj]                                                                                                                \r\n..\\blpapijs.cpp(785): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module \r\ns\\blpapi\\build\\blpapijs.vcxproj]                                                                                                                \r\n..\\blpapijs.cpp(828): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module \r\ns\\blpapi\\build\\blpapijs.vcxproj]                                                                                                                \r\n..\\blpapijs.cpp(940): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_module \r\ns\\blpapi\\build\\blpapijs.vcxproj]                                                                                                                \r\n..\\blpapijs.cpp(961): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ \r\nnode_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                     \r\n..\\blpapijs.cpp(989): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ \r\nnode_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                     \r\n..\\blpapijs.cpp(1002): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs \r\n\\node_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                    \r\n..\\blpapijs.cpp(1057): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [c:\\Users\\London\\Apps\\financejs \r\n\\node_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                    \r\n..\\blpapijs.cpp(1136): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_modul \r\nes\\blpapi\\build\\blpapijs.vcxproj]                                                                                                               \r\n..\\blpapijs.cpp(1249): warning C4003: not enough actual parameters for macro 'BLPAPI_EXCEPTION_IMPL' [c:\\Users\\London\\Apps\\financejs\\node_modul \r\nes\\blpapi\\build\\blpapijs.vcxproj]                                                                                                               \r\n..\\blpapijs.cpp(1263): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ \r\nnode_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                     \r\n..\\blpapijs.cpp(1281): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\node \r\n_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                         \r\n..\\blpapijs.cpp(1290): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\ \r\nnode_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                     \r\n..\\blpapijs.cpp(1278): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n..\\blpapijs.cpp(1402): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\node \r\n_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                         \r\n..\\blpapijs.cpp(1616): warning C4244: 'argument': conversion from '__int64' to 'const int', possible loss of data [c:\\Users\\London\\Apps\\finance \r\njs\\node_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                  \r\n..\\blpapijs.cpp(1630): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [c:\\Users\\London\\Apps\\financejs\\node \r\n_modules\\blpapi\\build\\blpapijs.vcxproj]                                                                                                         \r\n..\\blpapijs.cpp(1637): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n..\\blpapijs.cpp(1640): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n..\\blpapijs.cpp(1643): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n..\\blpapijs.cpp(1690): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n..\\blpapijs.cpp(1693): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n..\\blpapijs.cpp(1696): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build \r\n\\blpapijs.vcxproj]                                                                                                                              \r\n  C:\\Users\\London\\.node-gyp\\6.9.2\\include\\node\\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      \r\n     Creating library c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build\\Release\\blpapijs.lib and object c:\\Users\\London\\Apps\\financejs\\n \r\n  ode_modules\\blpapi\\build\\Release\\blpapijs.exp                                                                                                 \r\n  Generating code                                                                                                                               \r\n  Finished generating code                                                                                                                      \r\n  blpapijs.vcxproj -> c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build\\Release\\\\blpapijs.node                                           \r\n  blpapijs.vcxproj -> c:\\Users\\London\\Apps\\financejs\\node_modules\\blpapi\\build\\Release\\blpapijs.pdb (Full PDB)                                  \r\nfinancejs@0.0.1 c:\\Users\\London\\Apps\\financejs                                                                                                  \r\n`-- blpapi@1.2.0                                                                                                                                \r\n  `-- custom-error-generator@7.0.0                                                                                                              \r\n````"}}
{"actor":{"display_login":"Bondifrench"}}