aw1875 / puppeteer-hcaptcha

A library to solve hcaptcha challenges that are automated within puppeteer. You can automatically set response values where they should be so the only thing left for you is submitting the page or you can get the response token.
https://www.npmjs.com/package/puppeteer-hcaptcha
137 stars 38 forks source link

Installing on windows #58

Closed yarekc closed 2 years ago

yarekc commented 2 years ago

Trying to install it on win11

λ node -v 
v14.17.3  
λ npm -v  
7.21.0    
λ yarn -v 
1.22.18   
λ npm i puppeteer-hcaptcha                                                                                                                                                                                                       
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142                           
npm WARN deprecated har-validator@5.1.5: this library is no longer supported                                                                                                                                                     
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.      
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142                                                                                                              
npm ERR! code 1                                                                                                                                                                                                                  
npm ERR! path C:\Users\utilisateur\Desktop\extractionsPHP\indeed\node_modules\@tensorflow\tfjs-node                                                                                                                              
npm ERR! command failed                                                                                                                                                                                                          
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/install.js                                                                                                                                                    
npm ERR! CPU-windows-3.16.0.zip                                                                                                                                                                                                  
npm ERR! https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.7.0.zip                                                                                                                      
npm ERR! node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build                                                                                                                 
npm ERR! node-pre-gyp info it worked if it ends with ok                                                                                                                                                                          
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.4                                                                                                                                                                              
npm ERR! node-pre-gyp info using node@14.17.3 | win32 | x64                                                                                                                                                                      
npm ERR! node-pre-gyp info check checked for "C:\Users\utilisateur\Desktop\extractionsPHP\indeed\node_modules\@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node" (not found)                                                   
npm ERR! node-pre-gyp http GET https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.16.0/CPU-windows-3.16.0.zip                                                                                                   
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.16.0/CPU-windows-3.16.0.zip                                                              
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @tensorflow/tfjs-node@3.16.0 and node@14.17.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)                                           
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.16.0/CPU-windows-3.16.0.zip                                                            
npm ERR! gyp info it worked if it ends with ok                                                                                                                                                                                   
npm ERR! gyp info using node-gyp@7.1.2                                                                                                                                                                                           
npm ERR! gyp info using node@14.17.3 | win32 | x64                                                                                                                                                                               
npm ERR! gyp info ok                                                                                                                                                                                                             
npm ERR! gyp info it worked if it ends with ok                                                                                                                                                                                   
npm ERR! gyp info using node-gyp@7.1.2                                                                                                                                                                                           
npm ERR! gyp info using node@14.17.3 | win32 | x64                                                                                                                                                                               
npm ERR! gyp info find Python using Python version 3.9.12 found at "C:\Users\utilisateur\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe"                                       
npm ERR! gyp ERR! find VS                                                                                                                                                                                                        
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config                                                                                                                                                   
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt                                                                                                                                                 
npm ERR! gyp ERR! find VS checking VS2019 (16.4.29709.97) found at:                                                                                                                                                              
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"                                                                                                                                        
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"                                                                                                                                                              
npm ERR! gyp ERR! find VS - found VC++ toolset: v142                                                                                                                                                                             
npm ERR! gyp ERR! find VS - missing any Windows SDK                                                                                                                                                                              
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use                                                                                                                                         
npm ERR! gyp ERR! find VS looking for Visual Studio 2015                                                                                                                                                                         
npm ERR! gyp ERR! find VS - not found                                                                                                                          
aw1875 commented 2 years ago

Please read the error stack. This is a TensorFlow error and you can see the problem right here:

npm ERR! gyp ERR! find VS checking VS2019 (16.4.29709.97) found at:                                                                                                                                                              
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"                                                                                                                                        
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"                                                                                                                                                              
npm ERR! gyp ERR! find VS - found VC++ toolset: v142                                                                                                                                                                             
npm ERR! gyp ERR! find VS - missing any Windows SDK                                                                                                                                                                              
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use                                                                                                                                         
npm ERR! gyp ERR! find VS looking for Visual Studio 2015                                                                                                                                                                         
npm ERR! gyp ERR! find VS - not found