Error while trying to connect Arduino Uno to Node-Red

Hello guys,

I am trying to connect my Arduino Uno to Node-Red but I keep having this error if I try to install "node-red-node-arduino".

2021-06-15T01:54:10.814Z Install : node-red-node-arduino 0.3.1

2021-06-15T01:54:10.815Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-node-arduino@0.3.1
2021-06-15T01:54:15.199Z [err] npm
2021-06-15T01:54:15.199Z [err] ERR! code 1
2021-06-15T01:54:15.199Z [err] npm ERR! path C:\SPB_DATA.node-red\node_modules@serialport\bindings
2021-06-15T01:54:15.200Z [err] npm ERR!
2021-06-15T01:54:15.200Z [err] command failed
2021-06-15T01:54:15.200Z [err] npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-06-15T01:54:15.200Z [err] npm ERR! gyp info it worked if it ends with ok
2021-06-15T01:54:15.200Z [err] npm ERR!
2021-06-15T01:54:15.200Z [err] gyp info using node-gyp@7.1.2
2021-06-15T01:54:15.200Z [err] npm ERR! gyp info using node@14.17.0 | win32 | x64
2021-06-15T01:54:15.200Z [err] npm
2021-06-15T01:54:15.200Z [err] ERR! gyp info find Python using Python version 3.9.5 found at "C:\Users\dfwei\AppData\Local\Programs\Python\Python39\python.exe"
2021-06-15T01:54:15.200Z [err] npm ERR!
2021-06-15T01:54:15.200Z [err] gyp info find VS using VS2019 (16.9.31112.23) found at:
2021-06-15T01:54:15.200Z [err] npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
2021-06-15T01:54:15.200Z [err] npm
2021-06-15T01:54:15.201Z [err] ERR! gyp info find VS run with --verbose for detailed information
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn C:\Users\dfwei\AppData\Local\Programs\Python\Python39\python.exe
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args [
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'C:\Users\dfwei\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'binding.gyp',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-f',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'msvs',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-I',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'C:\SPB_DATA\.node-red\node_modules\@serialport\bindings\build\config.gypi',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-I',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'C:\Users\dfwei\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-I',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'C:\Users\dfwei\AppData\Local\node-gyp\Cache\14.17.0\common.gypi',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dvisibility=default',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\dfwei\AppData\Local\node-gyp\Cache\14.17.0',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\dfwei\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\dfwei\\AppData\\Local\\node-gyp\\Cache\\14.17.0\\<(target_arch)\\node.lib',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\SPB_DATA\.node-red\node_modules\@serialport\bindings',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Dnode_engine=v8',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '--depth=.',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '--no-parallel',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '--generator-output',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args 'C:\SPB_DATA\.node-red\node_modules\@serialport\bindings\build',
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.'
2021-06-15T01:54:15.201Z [err] npm ERR! gyp info spawn args ]
2021-06-15T01:54:15.201Z [err] npm ERR! gyp: C:\Users\dfwei\AppData\Local\node-gyp\Cache\14.17.0\common.gypi not found (cwd: C:\SPB_DATA.node-red\node_modules@serialport\bindings) while reading includes of binding.gyp while trying to load binding.gyp
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! configure error
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\dfwei\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:376:20)
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! System Windows_NT 10.0.19041
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\dfwei\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! cwd C:\SPB_DATA.node-red\node_modules@serialport\bindings
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! node -v v14.17.0
2021-06-15T01:54:15.201Z [err] npm ERR! gyp ERR! node-gyp -v v7.1.2
2021-06-15T01:54:15.201Z [err] npm
2021-06-15T01:54:15.201Z [err] ERR! gyp ERR! not ok
2021-06-15T01:54:15.207Z [err]
2021-06-15T01:54:15.207Z [err] npm ERR! A complete log of this run can be found in:
2021-06-15T01:54:15.207Z [err] npm ERR! C:\Users\dfwei\AppData\Local\npm-cache_logs\2021-06-15T01_54_15_202Z-debug.log
2021-06-15T01:54:15.218Z rc=1

Does anyone knows what is going on? I have NPM version 7.17.0, node version 14.17.0 on Windows 10 64 bit.

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