Giter Club home page Giter Club logo

Comments (2)

apaprocki avatar apaprocki commented on July 28, 2024

It appears this would fix it:

You must have at least 3.10.8 version of NPM. This is critical.
npm -g install npm@next

Make sure Node globally uses the same version 2015
npm config set msvs_version 2015 --global

Delete node_modules directory in your project
npm install

and later someone said:

if you are working on an old version like I was, a simple npm install -g npm (without the @next) worked.

You can see from the log your version of npm is ancient:

npm  v2.14.7

from blpapi-node.

Bondifrench avatar Bondifrench commented on July 28, 2024

Thanks @apaprocki ,
As I said earlier I did npm -g install npm@next before but for some reason, it did not actually update npm.
I believe it has to with the Roaming folder as described here, at the end, I had to upgrade my version of Node and then I got the latest version of NPM.
A line in the docs might be handy.

The installation of blpapi-node was successful afterwards.

Just to let you know, there are lots of warnings coming with the installation:

> [email protected] install c:\Users\London\Apps\financejs\node_modules\blpapi                                                                       
> node-gyp configure build                                                                                                                      
                                                                                                                                                
                                                                                                                                                
c:\Users\London\Apps\financejs\node_modules\blpapi>if not defined npm_config_node_gyp (node "C:\Users\London\AppData\Roaming\npm\node_modules\np
m\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )  else (node "" configure build )                             
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.                                     
  blpapijs.cpp                                                                                                                                  
  win_delay_load_hook.cc                                                                                                                        
..\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]                                                                                                     
..\blpapijs.cpp(559): warning C4996: 'v8::Value::ToInt32': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build\bl 
papijs.vcxproj]                                                                                                                                 
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(8202): note: see declaration of 'v8::Value::ToInt32'                                        
..\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]                                                                                                                
..\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]                                                                                                                
..\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]                                                                                                                
..\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]                                                                                                                
..\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]                                                                                                                
..\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]                                                                                                     
..\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]                                                                                                     
..\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]                                                                                                    
..\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]                                                                                                    
..\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]                                                                                                               
..\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]                                                                                                               
..\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]                                                                                                     
..\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]                                                                                                         
..\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]                                                                                                     
..\blpapijs.cpp(1278): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
..\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]                                                                                                         
..\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]                                                                                                  
..\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]                                                                                                         
..\blpapijs.cpp(1637): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
..\blpapijs.cpp(1640): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
..\blpapijs.cpp(1643): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
..\blpapijs.cpp(1690): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
..\blpapijs.cpp(1693): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
..\blpapijs.cpp(1696): warning C4996: 'v8::Object::ForceSet': was declared deprecated [c:\Users\London\Apps\financejs\node_modules\blpapi\build 
\blpapijs.vcxproj]                                                                                                                              
  C:\Users\London\.node-gyp\6.9.2\include\node\v8.h(2696): note: see declaration of 'v8::Object::ForceSet'                                      
     Creating library c:\Users\London\Apps\financejs\node_modules\blpapi\build\Release\blpapijs.lib and object c:\Users\London\Apps\financejs\n 
  ode_modules\blpapi\build\Release\blpapijs.exp                                                                                                 
  Generating code                                                                                                                               
  Finished generating code                                                                                                                      
  blpapijs.vcxproj -> c:\Users\London\Apps\financejs\node_modules\blpapi\build\Release\\blpapijs.node                                           
  blpapijs.vcxproj -> c:\Users\London\Apps\financejs\node_modules\blpapi\build\Release\blpapijs.pdb (Full PDB)                                  
[email protected] c:\Users\London\Apps\financejs                                                                                                  
`-- [email protected]                                                                                                                                
  `-- [email protected]                                                                                                              

from blpapi-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.