# Error while trying to connect Arduino Uno to Node-Red

**URL:** https://discourse.nodered.org/t/error-while-trying-to-connect-arduino-uno-to-node-red/47153
**Category:** General
**Created:** [15 June 2021 01:55 UTC](https://discourse.nodered.org/t/error-while-trying-to-connect-arduino-uno-to-node-red/47153 "2021-06-15T01:55:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DFW](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@DFW](https://discourse.nodered.org/u/DFW)
#### Post date: [15 June 2021 01:55 UTC](https://discourse.nodered.org/t/error-while-trying-to-connect-arduino-uno-to-node-red/47153/1 "2021-06-15T01:55:51Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 August 2021 01:56 UTC](https://discourse.nodered.org/t/error-while-trying-to-connect-arduino-uno-to-node-red/47153/2 "2021-08-14T01:56:12Z")

</div>

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