arlbibek / dvoting Goto Github PK
View Code? Open in Web Editor NEW๐ณ A decentralized voting system based on Ethereum blockchain technology.
License: MIT License
๐ณ A decentralized voting system based on Ethereum blockchain technology.
License: MIT License
Failed to compile.
./src/component/Admin/AddCandidate/AddCandidate.js
Module not found: Can't resolve '../../../contracts/Election.json'
in 'C:\Users\I S A A C\Downloads\dVoting\client\src\component\Admin\AddCandidate'
"Admin might not approve your account if the provided Phone number nub does not matches the account address registered in admins catalogue."
Can you please share what is the admins catalogue? I am not able to register user
I cloned the repository and inside the client folder, I ran npm install
However it gave a series of errors, I tried multiple times but everytime it would give me the same error
Heres the list of all the errors
npm ERR! code 1
npm ERR! path F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
npm ERR! bufferutil.cc
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(34): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(6802): note: see declaration of 'v8::FunctionTemplate::GetFunction'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(34): error C2661: 'Nan::Set': no overloaded function takes 2 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(50): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(57): error C2661: 'v8::Object::Get': no overloaded function takes 1 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(68): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(70): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(89): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(90): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(92): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(93): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3107): note: see declaration of 'v8::Value::Int32Value'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\bufferutil.cc(94): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3107): note: see declaration of 'v8::Value::Int32Value'
npm ERR! validation.cc
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\validation.cc(114): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\validation.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(6802): note: see declaration of 'v8::FunctionTemplate::GetFunction'
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\validation.cc(114): error C2661: 'Nan::Set': no overloaded function takes 2 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\validation.vcxproj]
npm ERR! f:\voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\src\validation.cc(133): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\validation.vcxproj]
npm ERR! c:\users\harsh\appdata\local\node-gyp\cache\16.13.2\include\node\v8.h(3060): note: see declaration of 'v8::Value::ToObject'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.8.9 found at "C:\msys64\mingw64\bin\python3.exe"
npm ERR! gyp info find VS using VS2017 (15.9.28307.1525) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! (node:13036) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use node --trace-deprecation ...
to show where the warning was created)
npm ERR! gyp info spawn C:\msys64\mingw64\bin\python3.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\harsh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\harsh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\harsh\AppData\Local\node-gyp\Cache\16.13.2\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\harsh\AppData\Local\node-gyp\Cache\16.13.2',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\harsh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\harsh\\AppData\\Local\\node-gyp\\Cache\\16.13.2\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocket\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build/binding.sln',npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\harsh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\harsh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd F:\Voting blockchain cloned repos\client\node_modules\web3-providers-ws\node_modules\websocketnpm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v7.1.2npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\harsh\AppData\Local\npm-cache_logs\2022-02-09T06_07_45_025Z-debug.log
P.S:- I thought it was because there were both yarn and npm json files in the client folder. I deleted the yarn one and try to run npm install again, but the error kept peprsisting. Please Help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.