fetherston / npm-parrot-minidrone

Fly Parrot MiniDrones with Node JS
83 stars 24 forks source link

Issues in package installation #26

Closed walber000 closed 5 years ago

walber000 commented 5 years ago

Hello everyone,

I'm currently trying to fly and control a Parrot Mambo, and I'm trying to install this package to do so, but I got a lot of errors (listed below and log attached). I already tried a lot of solutions about the MSbuild.exe, but none of them worked. My SO is Windows 10 Pro, 64 bits.

Log: 2018-11-21T12_51_07_259Z-debug.log

(Sorry for the messy log below, I don't know how to do it nicely)

C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone-master>npm install parrot-minidrone                                                                                                                                                                                                                                                                                                                                           
 > usb@1.5.0 install C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone-master\node_modules\usb                                                                                                                    
 > node-pre-gyp install --fallback-to-build                                                                                                                                                                                                                                                                                                                                                                                            
 node-pre-gyp WARN Using needle for node-pre-gyp https download                                                                                                                                                     
 [usb] Success: "C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone - 
 master\node_modules\usb\src\binding\usb_bindings.node" is installed via remote                                                                                                                                                                                                                                                                                    
 > node-hid@0.5.7 install C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\node-hid                                                                                                          > 
 prebuild-install || node-gyp rebuild                                                                                                                                                                                                                                                                                                                                                                                                
 prebuild-install WARN install No prebuilt binaries found (target=10.13.0 runtime=node arch=x64 
 platform=win32)                                                                                                                                                                                                                                                                                                                        
 C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone-master\node_modules\node-hid>if not 
 defined npm_config_node_gyp (node "C:\Program 
 Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp- 
 bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program 
 Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )                                                            
 Compilando os projetos desta solução um de cada vez. Para habilitar o build paralelo, adicione a opção 
 "/m".                                                                                                         hid.c                                                                                                                                                                                                                  
 win_delay_load_hook.cc                                                                                                                                                                                              
 hidapi.vcxproj -> C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone-master\node_modules\node- 
 hid\build\Release\\hid                                                                                              api.lib                                                                                                                                                                                                            
 HID.cc                                                                                                                                                                                                             
 win_delay_load_hook.cc                                                                                                                                                                                           
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone- 
 master\node_modules\nan\nan_implementation_12_inl.h(340): warning C                                                                                            
 4996: 'v8::StringObject::New': foi declarado preterido (compilando arquivo de origem ..\src\HID.cc) 
 [C:\Users\walbe\Des                                                                                            ktop\Node.js\npm-parrot- 
 minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                    
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(5052): note: consulte a declaração de 
 'v8::StringObject::New' (com                                                                                              pilando arquivo 
 de origem ..\src\HID.cc)                                                                                                                                                                         
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\nan\nan.h(1066): 
 warning C4996: 'v8::Value::ToS                                                                                            tring': foi 
 declarado preterido (compilando arquivo de origem ..\src\HID.cc) 
 [C:\Users\walbe\Desktop\Node.js\npm-parrot                                                                                            - 
 minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                                           
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(10040): note: consulte a declaração de 
 'v8::Value::ToString' (comp                                                                                              ilando arquivo de 
 origem ..\src\HID.cc)                                                                                                                                                                          
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\nan\nan.h(1080): 
 warning C4996: 'v8::String::Wr                                                                                            iteUtf8': foi 
 declarado preterido (compilando arquivo de origem ..\src\HID.cc) 
 [C:\Users\walbe\Desktop\Node.js\npm-parr                                                                                            ot- 
 minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                                         
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2658): note: consulte a declaração de 
 'v8::String::WriteUtf8' (com                                                                                              pilando arquivo de 
 origem ..\src\HID.cc)                                                                                                                                                                         
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(67): 
 warning C4290: especif                                                                                            icação de exceção de 
 C++ ignorada exceto para indicar que a função não é __declspec(nothrow) [C:\Users\walbe\Desktop\No                                                                                            
 de.js\npm-parrot-minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                         
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(70): 
 warning C4290: especif                                                                                            icação de exceção de 
 C++ ignorada exceto para indicar que a função não é __declspec(nothrow) [C:\Users\walbe\Desktop\No                                                                                            
 de.js\npm-parrot-minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                         
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(152): 
 warning C4290: especi                                                                                            ficação de exceção de 
 C++ ignorada exceto para indicar que a função não é __declspec(nothrow) [C:\Users\walbe\Desktop\N                                                                                            
 ode.js\npm-parrot-minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                        
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(163): 
 warning C4290: especi                                                                                            ficação de exceção de 
 C++ ignorada exceto para indicar que a função não é __declspec(nothrow) [C:\Users\walbe\Desktop\N                                                                                            
 ode.js\npm-parrot-minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                        
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(207): 
 error C2661: 'v8::Fun                                                                                            ction::NewInstance': 
 nenhuma função sobrecarregada recebe 2 argumentos [C:\Users\walbe\Desktop\Node.js\npm-parrot- 
 minid                                                                                            rone-master\node_modules\node- 
 hid\build\HID.vcxproj]                                                                                                                                                               
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(231): 
 warning C4996: 'Nan::                                                                                            Callback::Call': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\node-                                                                                            
 hid\build\HID.vcxproj]                                                                                                                                                                                               
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\nan\nan.h(1655): note: 
 consulte a declaração                                                                                               de 'Nan::Callback::Call'                                                                                                                                                                                         
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(363): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(398): 
 warning C4530: manipu                                                                                            lador de exceção de 
 C++ usado, mas semântica de liberação não está habilitada. Especifique /EHsc [C:\Users\walbe\Deskto                                                                                            
 p\Node.js\npm-parrot-minidrone-master\node_modules\node-hid\build\HID.vcxproj]                                                                                                                                     
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(404): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(405): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(409): 
 warning C4996: 'v8::S                                                                                            tring::Value::Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone-master\node_modules\                                                                                            
 node-hid\build\HID.vcxproj]                                                                                                                                                                                          
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2916): note: consulte a declaração de 
 'v8::String::Value::Value'                                                                                              
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(443): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(471): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(535): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 
 c:\users\walbe\desktop\node.js\npm-parrot-minidrone-master\node_modules\node-hid\src\hid.cc(536): 
 warning C4996: 'v8::V                                                                                            alue::Int32Value': foi 
 declarado preterido [C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone- 
 master\node_modules\nod                                                                                            e- 
 hid\build\HID.vcxproj]                                                                                                                                                                                             
 c:\users\walbe\.node-gyp\10.13.0\include\node\v8.h(2478): note: consulte a declaração de 
 'v8::Value::Int32Value'                                                                                                 gyp ERR! build error                                                                                                                                                                                               
 gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual 
 Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1                                                                       
 gyp ERR! stack     at ChildProcess.onExit (C:\Program 
 Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:263:23)                                                                                     
 gyp ERR! stack     at ChildProcess.emit (events.js:182:13)                                                                                                                                                         
 gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)                                                                                                                       
 gyp ERR! System Windows_NT 10.0.17134                                                                                                                                                                              
 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
 Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"                                                          
 gyp ERR! cwd C:\Users\walbe\Desktop\Node.js\npm-parrot-minidrone-master\node_modules\node-hid                                                                                                                      
 gyp ERR! node -v v10.13.0                                                                                                                                                                                          
 gyp ERR! node-gyp -v v3.8.0                                                                                                                                                                                        
 gyp ERR! not ok                                                                                                                                                                                                    
 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules\xpc- 
 connection):                                                                                                                npm WARN notsup 
 SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted { 
 "os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})                                                                                                                                                                                                                                                               
 npm ERR! code ELIFECYCLE                                                                                                                                                                                           
 npm ERR! errno 1                                                                                                                                                                                                   
 npm ERR! node-hid@0.5.7 install: `prebuild-install || node-gyp rebuild`                                                                                                                                            
 npm ERR! Exit status 1                                                                                                                                                                                             
 npm ERR!                                                                                                                                                                                                           
 npm ERR! Failed at the node-hid@0.5.7 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!     C:\Users\walbe\AppData\Roaming\npm-cache\_logs\2018-11-21T12_51_07_259Z- 
 debug.log
fetherston commented 5 years ago

Looks like noble only works in a 32 bit windows environment. Sorry, I haven't seen a bluetooth library that supports 64, but if I do maybe I can try it here.