Hi -
- I'm new to node-red
- I'm new to the ncd.io hardware environment
- I have NO idea about install loaders or what makes them fail.
I'm trying to install the ncd-red-wireless module (V1.5.31) and the load is failing.
Environment:
Windows 10 Pro Version 21H1 (OS Build 19043.906) 64bit
node.js Version 14.16.1
npm Version 6.14.12
Visual Studio V19
I get the following log :
2021-04-09T06:16:32.330Z Install : ncd-red-wireless 1.5.31
2021-04-09T06:16:32.358Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production ncd-red-wireless@1.5.31
2021-04-09T06:16:45.449Z [out]
2021-04-09T06:16:45.449Z [out] > @serialport/bindings@2.0.8 install C:\Users\bahea.node-red\node_modules@serialport\bindings
2021-04-09T06:16:45.449Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-04-09T06:16:45.449Z [out]
2021-04-09T06:16:46.371Z [err] prebuild-install
2021-04-09T06:16:46.371Z [err] WARN install No prebuilt binaries found (target=14.16.1 runtime=node arch=x64 libc= platform=win32)
2021-04-09T06:16:46.392Z [out]
2021-04-09T06:16:46.392Z [out] C:\Users\bahea.node-red\node_modules@serialport\bindings>
2021-04-09T06:16:46.394Z [out] if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
2021-04-09T06:16:48.316Z [out] Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
2021-04-09T06:16:48.928Z [out] serialport.cpp
2021-04-09T06:16:48.928Z [out] serialport_win.cpp
2021-04-09T06:16:48.928Z [out] win_delay_load_hook.cc
2021-04-09T06:16:49.873Z [out] C:\Users\bahea.node-red\node_modules@serialport\bindings\src\serialport.cpp(329,96): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\bahea.node-red\node_modules@serialport\bindings\build\bindings.vcxproj]
2021-04-09T06:16:49.873Z [out] C:\Users\bahea.node-red\node_modules@serialport\bindings\src\serialport.cpp(330,96): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\bahea.node-red\node_modules@serialport\bindings\build\bindings.vcxproj]
2021-04-09T06:16:49.873Z [out] C:\Users\bahea.node-red\node_modules@serialport\bindings\src\serialport.cpp(331,96): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\bahea.node-red\node_modules@serialport\bindings\build\bindings.vcxproj]
2021-04-09T06:16:49.873Z [out] C:\Users\bahea.node-red\node_modules@serialport\bindings\src\serialport.cpp(378,106): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\bahea.node-red\node_modules@serialport\bindings\build\bindings.vcxproj]
2021-04-09T06:16:50.375Z [err] gyp
2021-04-09T06:16:50.375Z [err] ERR! build error
2021-04-09T06:16:50.376Z [err] gyp ERR!
2021-04-09T06:16:50.376Z [err] stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1
2021-04-09T06:16:50.376Z [err] gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
2021-04-09T06:16:50.376Z [err] gyp ERR! stack
2021-04-09T06:16:50.376Z [err] at ChildProcess.emit (events.js:315:20)
2021-04-09T06:16:50.376Z [err] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
2021-04-09T06:16:50.376Z [err] gyp ERR! System Windows_NT 10.0.19043
2021-04-09T06:16:50.376Z [err] gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2021-04-09T06:16:50.376Z [err] gyp
2021-04-09T06:16:50.376Z [err] ERR! cwd C:\Users\bahea.node-red\node_modules@serialport\bindings
2021-04-09T06:16:50.376Z [err] gyp ERR! node -v v14.16.1
2021-04-09T06:16:50.376Z [err] gyp ERR! node-gyp -v v5.1.0
2021-04-09T06:16:50.376Z [err] gyp ERR!
2021-04-09T06:16:50.376Z [err] not ok
2021-04-09T06:16:50.580Z [err] npm ERR!
2021-04-09T06:16:50.580Z [err] code ELIFECYCLE
2021-04-09T06:16:50.580Z [err] npm
2021-04-09T06:16:50.580Z [err] ERR! errno 1
2021-04-09T06:16:50.584Z [err] npm ERR!
2021-04-09T06:16:50.584Z [err] @serialport/bindings@2.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-04-09T06:16:50.584Z [err] npm ERR! Exit status 1
2021-04-09T06:16:50.584Z [err] npm ERR!
2021-04-09T06:16:50.584Z [err] npm ERR!
2021-04-09T06:16:50.585Z [err] Failed at the @serialport/bindings@2.0.8 install script.
2021-04-09T06:16:50.585Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-09T06:16:50.596Z [err]
2021-04-09T06:16:50.596Z [err] npm ERR! A complete log of this run can be found in:
2021-04-09T06:16:50.596Z [err] npm ERR! C:\Users\bahea\AppData\Roaming\npm-cache_logs\2021-04-09T06_16_50_587Z-debug.log
2021-04-09T06:16:50.625Z rc=1
Can anyone give me an idea of how to get this to bind.
Regards,
Ozchemist.