Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with install on Windows 10 #11

Open
Bighoneypot opened this issue Jan 23, 2023 · 2 comments
Open

Problem with install on Windows 10 #11

Bighoneypot opened this issue Jan 23, 2023 · 2 comments

Comments

@Bighoneypot
Copy link

C:\Users\gabri>npm install node-red-contrib-usbhid
npm ERR! code 1
npm ERR! path C:\Users\gabri\node_modules\node-hid
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || 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! hid.c
npm ERR! win_delay_load_hook.cc
npm ERR! hidapi.vcxproj -> C:\Users\gabri\node_modules\node-hid\build\Release\hidapi.lib
npm ERR! HID.cc
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(67,11): warning C5040: le specifiche di eccezione dinamiche sono valide solo in C++14 e versioni precedenti. Verranno considerate come noexcept(false) [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(70,11): warning C5040: le specifiche di eccezione dinamiche sono valide solo in C++14 e versioni precedenti. Verranno considerate come noexcept(false) [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(152,9): warning C5040: le specifiche di eccezione dinamiche sono valide solo in C++14 e versioni precedenti. Verranno considerate come noexcept(false) [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(163,9): warning C5040: le specifiche di eccezione dinamiche sono valide solo in C++14 e versioni precedenti. Verranno considerate come noexcept(false) [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(203,91): error C2661: 'v8::Object::Get': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(202,59): error C2672: 'v8::Localv8::Function::Cast': non sono state trovate funzioni in overload corrispondenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(207,74): error C2661: 'v8::Function::NewInstance': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(231,18): warning C4996: 'Nan::Callback::Call': � stato dichiarato deprecato [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(280,51): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(305,51): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(339,45): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(360,8): error C2661: 'v8::Object::Get': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(363,58): error C2661: 'v8::Object::Get': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(398,7): warning C4530: utilizzato gestore eccezioni C++, ma la semantica di rimozione non � abilitata. Specificare /EHsc [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(404,46): error C2660: 'v8::Value::Int32Value': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(419,40): message : vedere la dichiarazione di 'v8::Value::Int32Value' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(405,47): error C2660: 'v8::Value::Int32Value': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(419,40): message : vedere la dichiarazione di 'v8::Value::Int32Value' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(409,62): error C2440: '': impossibile convertire da 'v8::Localv8::Value' a 'v8::String::Value' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(409,62): message : Nessun costruttore ha potuto accettare il tipo di origine o la risoluzione dell'overload del costruttore � risultata ambigua [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(443,37): error C2660: 'v8::Value::Int32Value': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(419,40): message : vedere la dichiarazione di 'v8::Value::Int32Value' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(468,10): error C2661: 'v8::Object::Get': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(471,60): error C2661: 'v8::Object::Get': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(504,15): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(508,15): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(512,15): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(535,38): error C2660: 'v8::Value::Int32Value': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(419,40): message : vedere la dichiarazione di 'v8::Value::Int32Value' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(536,39): error C2660: 'v8::Value::Int32Value': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(419,40): message : vedere la dichiarazione di 'v8::Value::Int32Value' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(551,101): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(552,103): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(554,110): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(557,143): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(560,149): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(563,139): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(565,105): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(566,109): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(568,107): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(571,98): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(573,36): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(596,31): error C2660: 'node::AtExit': la funzione non accetta 2 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\node.h(1070,18): message : vedere la dichiarazione di 'node::AtExit' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(614,82): error C2660: 'v8::FunctionTemplate::GetFunction': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-template.h(513,46): message : vedere la dichiarazione di 'v8::FunctionTemplate::GetFunction' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(614,83): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(616,115): error C2660: 'v8::FunctionTemplate::GetFunction': la funzione non accetta 0 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-template.h(513,46): message : vedere la dichiarazione di 'v8::FunctionTemplate::GetFunction' [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
npm ERR! C:\Users\gabri\node_modules\node-hid\src\HID.cc(616,116): error C2661: 'v8::Object::Set': nessuna funzione in overload accetta 1 argomenti [C:\Users\gabri\node_modules\node-hid\build\HID.vcxproj]
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.10.4 found at "C:\Users\gabri\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp info find VS using VS2022 (17.2.32630.192) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Users\gabri\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\gabri\AppData\Roaming\nvm\v18.13.0\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 'C:\Users\gabri\node_modules\node-hid\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\gabri\AppData\Roaming\nvm\v18.13.0\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\gabri\AppData\Local\node-gyp\Cache\18.13.0\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\gabri\AppData\Local\node-gyp\Cache\18.13.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\gabri\AppData\Roaming\nvm\v18.13.0\node_modules\npm\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\gabri\\AppData\\Local\\node-gyp\\Cache\\18.13.0\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\gabri\node_modules\node-hid',
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 'C:\Users\gabri\node_modules\node-hid\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
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\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\gabri\AppData\Roaming\nvm\v18.13.0\node_modules\npm\node_modules\node-gyp\lib\build.js:201:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejsx\node.exe" "C:\Users\gabri\AppData\Roaming\nvm\v18.13.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\gabri\node_modules\node-hid
npm ERR! gyp ERR! node -v v18.13.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gabri\AppData\Local\npm-cache_logs\2023-01-23T09_48_52_279Z-debug-0.log

@sniicker
Copy link

sniicker commented Aug 3, 2023

Same Problem

@gdziuba
Copy link
Collaborator

gdziuba commented Jan 12, 2024

@sniicker @Bighoneypot

Can either of you give this another shot and report back. You will have to do a manual install with:

git clone https://github.com/somebuddy87/node-red-contrib-usbhid.git
cd node-red-contrib-usbhid
npm install.

Working on getting the pallette manager updated as will within Node-RED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants