Open justin-ren opened 1 year ago
OS: WIN11 PRO
PS D:\codes\BETAFPV_Configurator-main> .\node_modules\.bin\electron-rebuild.cmd ⠋ Building module: bindings, Completed: 0在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。 ⠙ Building module: bindings, Completed: 0 serialport.cpp ⠧ Building module: bindings, Completed: 0D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": 不是 "v8" 的成员 [D:\codes\BETAFPV_Configurator-main\node_m odules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8.h(71): message : 参见“v8”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bindings\build\bindings. vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan_callbacks.h(55,40): error C2065: “AccessorSignature”: 未声明的标识符 [D:\codes\BETAFPV_Configurator-main\node_modul es\@serialport\bindings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan_callbacks.h(55,13): error C2923: “v8::Local”: 对于参数“T”,“AccessorSignature”不是有效的 模板 类型变量 [D:\codes\BETAFPV_Con figurator-main\node_modules\@serialport\bindings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan_callbacks.h(55): message : 参见“AccessorSignature”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serial port\bindings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan_callbacks.h(55,42): error C2955: “v8::Local”: 使用 类 模板 需要 模板 参数列表 [D:\codes\BETAFPV_Configurator-main\node_mo dules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-local-handle.h(242): message : 参见“v8::Local”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bin dings\build\bindings.vcxproj] ⠇ Building module: bindings, Completed: 0D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(682,37): warning C4996: 'v8::Isolate::IdleNotificationDeadline': Use MemoryPressureNotification() to influ ence the GC schedule. [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bindings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2516,14): error C2955: “v8::Local”: 使用 类 模板 需要 模板 参数列表 [D:\codes\BETAFPV_Configurator-main\node_modules\@s erialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-local-handle.h(242): message : 参见“v8::Local”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bin dings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2516,34): error C2641: 无法推导“v8::Local”的模板参数 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\b indings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2516,36): error C2780: “v8::Local<T> v8::Local(const v8::LocalBase<T> &)”: 应输入 1 个参数,却提供了 0 个 [D:\codes\BE TAFPV_Configurator-main\node_modules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-local-handle.h(378): message : 参见“v8::Local”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bin dings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2516,36): error C2780: “v8::Local<T> v8::Local(v8::Local<S>)”: 应输入 1 个参数,却提供了 0 个 [D:\codes\BETAFPV_Config urator-main\node_modules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-local-handle.h(247): message : 参见“v8::Local”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bin dings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2516,34): error C2783: “v8::Local<T> v8::Local(void)”: 未能为“T”推导 模板 参数 [D:\codes\BETAFPV_Configurator-main\ node_modules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-local-handle.h(244): message : 参见“v8::Local”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bin dings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2516,36): error C2780: “v8::Local<T> v8::Local(v8::Local<T>)”: 应输入 1 个参数,却提供了 0 个 [D:\codes\BETAFPV_Config urator-main\node_modules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-local-handle.h(242): message : 参见“v8::Local”的声明 [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bin dings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2542,6): error C2664: “void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallba ck,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)”: 无法将参数 2 从“Nan::imp::NativeGetter ”转换为“v8::AccessorGetterCallback” [D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bindings\build\bindings.vcxproj] D:\codes\BETAFPV_Configurator-main\node_modules\nan\nan.h(2544,7): message : 该强制转换要求 reinterpret_cast、C 样式强制转换或函数类型强制转换 [D:\codes\BETAFPV_Configurator-main\node_mod ules\@serialport\bindings\build\bindings.vcxproj] C:\Users\amdin\.electron-gyp\25.2.0\include\node\v8-template.h(809,8): message : 参见“v8::ObjectTemplate::SetAccessor”的声明 [D:\codes\BETAFPV_Configurator-main\node_mod ules\@serialport\bindings\build\bindings.vcxproj] ✖ Rebuild Failed An unhandled error occurred inside electron-rebuild node-gyp failed to rebuild 'D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bindings'. For more information, rerun with the DEBUG environment variable set to "electron-rebuild". Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1 Error: node-gyp failed to rebuild 'D:\codes\BETAFPV_Configurator-main\node_modules\@serialport\bindings'. For more information, rerun with the DEBUG environment variable set to "electron-rebuild". Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1 at NodeGyp.rebuildModule (D:\codes\BETAFPV_Configurator-main\node_modules\electron-rebuild\lib\src\module-type\node-gyp.js:120:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ModuleRebuilder.rebuildNodeGypModule (D:\codes\BETAFPV_Configurator-main\node_modules\electron-rebuild\lib\src\module-rebuilder.js:98:9) at async ModuleRebuilder.rebuild (D:\codes\BETAFPV_Configurator-main\node_modules\electron-rebuild\lib\src\module-rebuilder.js:128:14) at async Rebuilder.rebuildModuleAt (D:\codes\BETAFPV_Configurator-main\node_modules\electron-rebuild\lib\src\rebuild.js:149:13) at async Rebuilder.rebuild (D:\codes\BETAFPV_Configurator-main\node_modules\electron-rebuild\lib\src\rebuild.js:112:17) at async D:\codes\BETAFPV_Configurator-main\node_modules\electron-r ebuild\lib\src\cli.js:158:9```
Configuration
OS: WIN11 PRO
Output