Running „node-red-contrib-edge” in node version “16.13.2”

Dear all,
I am trying to use „node-red-contrib-edge” in node-red with node version “16.14.2”.
But when I run my flow in node-red, I get following error:

Error: The edge module has not been pre-compiled for node.js version v16.14.2. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions."

After this I tried to build custom version of node-red from following git repo.

by giving command “build.bat release 16.6.0” in “\edge-js\tools” directory of above-mentioned repository.
But after doing it I got following error.

C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\tools>build.bat release 16.6.0
Building edge.node release for node.js x86 v16.6.0
C:\Users\sjain\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.6.0 | win32 | ia32
gyp info find Python using Python version 3.9.13 found at "C:\Users\Saurabh.Jain\AppData\Local\Programs\Python\Python39\python.exe"
gyp http GET https://nodejs.org/download/release/v16.6.0/node-v16.6.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v16.6.0/node-v16.6.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v16.6.0/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v16.6.0/win-x64/node.lib
gyp http GET https://nodejs.org/download/release/v16.6.0/win-arm64/node.lib
gyp http GET https://nodejs.org/download/release/v16.6.0/win-x86/node.lib
gyp http 200 https://nodejs.org/download/release/v16.6.0/SHASUMS256.txt
gyp http 404 https://nodejs.org/download/release/v16.6.0/win-arm64/node.lib
gyp http 200 https://nodejs.org/download/release/v16.6.0/win-x64/node.lib
gyp http 200 https://nodejs.org/download/release/v16.6.0/win-x86/node.lib
gyp info find VS using VS2019 (16.7.30413.136) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\Saurabh.Jain\AppData\Local\Programs\Python\Python39\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sjain\\AppData\\Local\\node-gyp\\Cache\\16.6.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\sjain\\AppData\\Local\\node-gyp\\Cache\\16.6.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\sjain\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.6.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/RuntimeLibrary to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/RuntimeLibrary to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=Win32'
gyp info spawn args ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen.
  utils.cpp
  clrfunc.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\clrfunc.cpp(33,23): warning C4085: Pragma-Parameter "on"
 oder "off" erwartet [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\clrfunc.cpp(33,26): warning C4081: "newline" erwartet; "
)" gefunden [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
  clrfuncinvokecontext.cpp
  nodejsfunc.cpp
  nodejsfuncinvokecontext.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\nodejsfuncinvokecontext.cpp(69,23): warning C4085: Pragm
a-Parameter "on" oder "off" erwartet [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\nodejsfuncinvokecontext.cpp(69,26): warning C4081: "newl
ine" erwartet; ")" gefunden [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
  persistentdisposecontext.cpp
  clrfuncreflectionwrap.cpp
  clractioncontext.cpp
  v8synchronizationcontext.cpp
  callbackhelper.cpp
  edge.cpp
     Bibliothek "C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_nativeclr.lib" und Objekt "C:\U
  sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_nativeclr.exp" werden erstellt.
  LINK : /LTCG wurde angegeben, es ist jedoch keine Codegenerierung erforderlich. Entfernen Sie /LTCG aus der Linkbefeh
  lszeile, um die Linkerleistung zu erhöhen.
  edge_nativeclr.vcxproj -> C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\\edge_nativeclr.node
  v8synchronizationcontext.cpp
  callbackhelper.cpp
  edge.cpp
  coreclrembedding.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\coreclrembedding.cpp(523,20): warning C4018: "
<": Konflikt zwischen "signed" und "unsigned" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.v
cxproj]
  coreclrfunc.cpp
  coreclrnodejsfunc.cpp
  coreclrfuncinvokecontext.cpp
  coreclrnodejsfuncinvokecontext.cpp
  utils.cpp
  pal_utils.cpp
  trace.cpp
  fx_ver.cpp
  fx_muxer.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  json.cpp
  json_parsing.cpp
  json_serialization.cpp
  asyncrt_utils.cpp
  deps_format.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\deps\deps_format.cpp(56,27): warning C4018: "<
": Konflikt zwischen "signed" und "unsigned" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vc
xproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\deps\deps_format.cpp(172,31): warning C4018: "
<": Konflikt zwischen "signed" und "unsigned" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.v
cxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\deps\deps_format.cpp(198,27): warning C4018: "
<": Konflikt zwischen "signed" und "unsigned" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.v
cxproj]
  deps_entry.cpp
  deps_resolver.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  args.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  coreclr.cpp
  libhost.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  runtime_config.cpp
  pal.windows.cpp
     Bibliothek "C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_coreclr.lib" und Objekt "C:\Use
  rs\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_coreclr.exp" werden erstellt.
  Code wird generiert.
  269 of 3093 functions ( 8.7%) were compiled, the rest were copied from previous compilation.
    0 functions were new in current compilation
    6 functions had inline decision re-evaluated but remain unchanged
  Codegenerierung ist abgeschlossen.
coreclrembedding.obj : fatal error LNK1103: Debuginformationen beschädigt; Modul muss neu kompiliert werden. [C:\Users\
Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\sjain\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23)gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js\\lib\\native\\win32\\ia32\\16.6.0\\node.exe" "C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build" "--msvs_version=2019" "-release"
gyp ERR! cwd C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js
gyp ERR! node -v v16.6.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
Error building edge.node release for node.js x86 v16.6.0
Building edge.node release for node.js x64 v16.6.0
C:\Users\sjain\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.6.0 | win32 | x64
gyp info find Python using Python version 3.9.13 found at "C:\Users\Saurabh.Jain\AppData\Local\Programs\Python\Python39\python.exe"
gyp info find VS using VS2019 (16.7.30413.136) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\Saurabh.Jain\AppData\Local\Programs\Python\Python39\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sjain\\AppData\\Local\\node-gyp\\Cache\\16.6.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\sjain\\AppData\\Local\\node-gyp\\Cache\\16.6.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\sjain\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.6.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/RuntimeLibrary to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/RuntimeLibrary to MSBuild, index value (-1) not in expected range [0, 4)
Warning: while converting VCCLCompilerTool/RuntimeTypeInfo to MSBuild, expected bool; got '-1'
Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to MSBuild, index value (-1) not in expected range [0, 4)
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen.
  utils.cpp
  clrfunc.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\clrfunc.cpp(33,23): warning C4085: Pragma-Parameter "on"
 oder "off" erwartet [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\clrfunc.cpp(33,26): warning C4081: "newline" erwartet; "
)" gefunden [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
  clrfuncinvokecontext.cpp
  nodejsfunc.cpp
  nodejsfuncinvokecontext.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\nodejsfuncinvokecontext.cpp(69,23): warning C4085: Pragm
a-Parameter "on" oder "off" erwartet [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\dotnet\nodejsfuncinvokecontext.cpp(69,26): warning C4081: "newl
ine" erwartet; ")" gefunden [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_nativeclr.vcxproj]
  persistentdisposecontext.cpp
  clrfuncreflectionwrap.cpp
  clractioncontext.cpp
  v8synchronizationcontext.cpp
  callbackhelper.cpp
  edge.cpp
     Bibliothek "C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_nativeclr.lib" und Objekt "C:\U
  sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_nativeclr.exp" werden erstellt.
  LINK : /LTCG wurde angegeben, es ist jedoch keine Codegenerierung erforderlich. Entfernen Sie /LTCG aus der Linkbefeh
  lszeile, um die Linkerleistung zu erhöhen.
  edge_nativeclr.vcxproj -> C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\\edge_nativeclr.node
  v8synchronizationcontext.cpp
  callbackhelper.cpp
  edge.cpp
  coreclrembedding.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  coreclrfunc.cpp
  coreclrnodejsfunc.cpp
  coreclrfuncinvokecontext.cpp
  coreclrnodejsfuncinvokecontext.cpp
  utils.cpp
  pal_utils.cpp
  trace.cpp
  fx_ver.cpp
  fx_muxer.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  json.cpp
  json_parsing.cpp
  json_serialization.cpp
  asyncrt_utils.cpp
  deps_format.cpp
  deps_entry.cpp
  deps_resolver.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  args.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  coreclr.cpp
  libhost.cpp
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\host\libhost.h(19,15): warning C4099: "fx_ver_
t": Geben Sie den zuerst unter Verwendung von "struct" und jetzt unter Verwendung von "class" gesehenen Namen ein [C:\U
sers\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\src\CoreCLREmbedding\fxr\fx_ver.h(11): message : Siehe Deklaration
von "fx_ver_t" [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  runtime_config.cpp
  pal.windows.cpp
     Bibliothek "C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_coreclr.lib" und Objekt "C:\Use
  rs\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\Release\edge_coreclr.exp" werden erstellt.
  Code wird generiert.
c:\users\saurabh.jain\desktop\node_red\edge\edge-js\src\coreclrembedding\pal\pal.windows.cpp : fatal error C1001: Inter
ner Compilerfehler. [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js\build\edge_coreclr.vcxproj]
  (Compilerdatei "d:\agent\_work\7\s\src\vctools\Compiler\Utc\src\p2\main.c", Zeile 195)
   Um dieses Problem zu umgehen, vereinfachen oder ändern Sie das Programm im Umfeld der oben aufgeführten Positionen.
  Geben Sie nach Möglichkeit hier Reproduktionsschritte an: https://developercommunity.visualstudio.com
  Wählen Sie im Menü "Hilfe" von Visual C++ den Befehl "Technischer Support",
   oder öffnen Sie die Hilfedatei des technischen Supports, um weitere Informationen zu erhalten.
    link!wcsicmp_l()+0x7d
    link!wcsicmp_l()+0x7d
    link!InvokeCompilerPass()+0x3bdda
    link!InvokeCompilerPass()+0x3989b
    link!CloseTypeServerPDB()+0x96df7


LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage [C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-j
s\build\edge_coreclr.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\sjain\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23)gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Users\\Saurabh.Jain\\Desktop\\Node_red\\edge\\edge-js\\lib\\native\\win32\\x64\\16.6.0\\node.exe" "C:\\Users\\sjain\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build" "--msvs_version=2019" "-release"
gyp ERR! cwd C:\Users\Saurabh.Jain\Desktop\Node_red\edge\edge-js
gyp ERR! node -v v16.6.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
Error building edge.node release for node.js x64 v16.6.0

Please inform me how can I build „node-red-contrib-edge” node for node version “16.14.2”

Thank you !!

Seeing that this node hasn’t been updated in almost four years and that the author never responded to the two open issues from 2019 and 2020, It looks like the author of the node has abandoned it.

I'd suggest tryIng something else to solve your issue.

@zenofmud thank you very much for your reponse. Then I will try something else ..thanks !!

Hmm, would be good to see this updated since it can act as a bridge to other languages including .net, powershell, python, etc.

Oddly, the edge-js dependency is marked as v10 but that doesn't actually exist, v9.3.5 is current.

I wonder if it is worth you trying edge-js directly via a function node?

1 Like

I see v18.4.0 as current edge-js - npm

Oh, weird because it is 9.3.5 on GitHub.

agracio/edge-js: Run .NET and Node.js code in-process on Windows, MacOS, and Linux (github.com)

They obviously aren't keeping GitHub releases in line with npm. I should have checked npm as well :slight_smile:

So, what happens if you fork the node and change the dependency to the latest version of edge-js?

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.