# Error installing "node-red-node-arduino 0.3.1"

**URL:** <https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153>\
**Category:** General\
**Created:** [24 March 2021 22:36 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153 "2021-03-24T22:36:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejas\_45](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tejas\_45](https://discourse.nodered.org/u/tejas_45)\
**Post date:** [24 March 2021 22:36 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/1 "2021-03-24T22:36:09Z")

</div>

i have try to install

C:\Windows\system32\>npm install node-red-node-arduino  
npm WARN deprecated bcrypt@3.0.6: versions \< v5.0.0 do not handle NUL in passwords properly  
npm WARN deprecated bcrypt@3.0.8: versions \< v5.0.0 do not handle NUL in passwords properly  
npm WARN deprecated node-pre-gyp@0.12.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future  
npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future  
npm ERR! code 1  
npm ERR! path C:\Windows\system32\node\_modules\firmata\node\_modules@serialport\bindings  
npm ERR! command failed  
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  
npm ERR! gyp info it worked if it ends with ok  
npm ERR! gyp info using node-gyp@7.1.2  
npm ERR! gyp info using node@14.16.0 | win32 | x64  
npm ERR! gyp info find Python using Python version 3.9.2 found at "C:\Python39\python.exe"  
npm ERR! gyp info find VS using VS2017 (15.9.28307.1440) found at:  
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"  
npm ERR! gyp info find VS run with --verbose for detailed information  
npm ERR! gyp info spawn C:\Python39\python.exe  
npm ERR! gyp info spawn args [  
npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\gyp\gyp\_main.py',  
npm ERR! gyp info spawn args 'binding.gyp',  
npm ERR! gyp info spawn args '-f',  
npm ERR! gyp info spawn args 'msvs',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Windows\system32\node\_modules\firmata\node\_modules\@serialport\bindings\build\config.gypi',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\addon.gypi',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi',  
npm ERR! gyp info spawn args '-Dlibrary=shared\_library',  
npm ERR! gyp info spawn args '-Dvisibility=default',  
npm ERR! gyp info spawn args '-Dnode\_root\_dir=C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0',  
npm ERR! gyp info spawn args '-Dnode\_gyp\_dir=C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp',  
npm ERR! gyp info spawn args '-Dnode\_lib\_file=C:\\Users\\tejas\\AppData\\Local\\node-gyp\\Cache\\14.16.0\\\<(target\_arch)\\node.lib',  
npm ERR! gyp info spawn args '-Dmodule\_root\_dir=C:\Windows\system32\node\_modules\firmata\node\_modules\@serialport\bindings',  
npm ERR! gyp info spawn args '-Dnode\_engine=v8',  
npm ERR! gyp info spawn args '--depth=.',  
npm ERR! gyp info spawn args '--no-parallel',  
npm ERR! gyp info spawn args '--generator-output',  
npm ERR! gyp info spawn args 'C:\Windows\system32\node\_modules\firmata\node\_modules\@serialport\bindings\build',  
npm ERR! gyp info spawn args '-Goutput\_dir=.'  
npm ERR! gyp info spawn args ]  
npm ERR! gyp: C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi not found (cwd: C:\Windows\system32\node\_modules\firmata\node\_modules@serialport\bindings) while reading includes of binding.gyp while trying to load binding.gypnpm ERR! gyp ERR! configure error  
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1  
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\configure.js:351:16)  
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:315:20)  
npm ERR! gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:277:12)  
npm ERR! gyp ERR! System Windows\_NT 10.0.19042  
npm ERR! gyp ERR! command "E:\nodejs\_nodered\node.exe" "C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" "rebuild"  
npm ERR! gyp ERR! cwd C:\Windows\system32\node\_modules\firmata\node\_modules@serialport\bindings  
npm ERR! gyp ERR! node -v v14.16.0  
npm ERR! gyp ERR! node-gyp -v v7.1.2  
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\Users\tejas\AppData\Local\npm-cache\_logs\2021-03-24T22\_06\_32\_074Z-debug.log

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 March 2021 10:00 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/2 "2021-03-25T10:00:30Z")

</div>

The first problem is that you are not in the correct directory to install it. You should be in your .node-red directory. Whether there are other problems I don't know.

Did you try to install it using Manage Palette in node-red? Usually that is the best way.

---

<div class="post-metadata">

**Author:** ![tejas\_45](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tejas\_45](https://discourse.nodered.org/u/tejas_45)\
**Post date:** [25 March 2021 11:56 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/3 "2021-03-25T11:56:12Z")

</div>

Thank you for your response...!!

Yes, for the first time i try to install from the Manage Palette in node-red web browser only. But, error like

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/f/1ffb0b5076bced45171f733caa61a93ba74153cc.png) happen.

**View Log:**  
2021-03-25T11:39:50.334Z Install : node-red-node-arduino 0.3.1

2021-03-25T11:39:50.660Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-node-arduino@0.3.1  
2021-03-25T11:40:08.891Z [err] npm ERR!  
2021-03-25T11:40:08.891Z [err] code 1  
2021-03-25T11:40:08.891Z [err] npm ERR! path C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings  
2021-03-25T11:40:08.893Z [err] npm ERR! command failed  
2021-03-25T11:40:08.893Z [err] npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info it worked if it ends with ok  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info using node-gyp@7.1.2  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp info using node@14.16.0 | win32 | x64  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp info find Python using Python version 3.9.2 found at "C:\Python39\python.exe"  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info find VS using VS2017 (15.9.28307.1440) found at:  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info find VS run with --verbose for detailed information  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn C:\Python39\python.exe  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args [  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\gyp\gyp\_main.py',  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp info spawn args 'binding.gyp',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-f',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args 'msvs',  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp info spawn args '-I',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args 'C:\Users\tejas\.node-red\node\_modules\firmata\node\_modules\@serialport\bindings\build\config.gypi',  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp info spawn args '-I',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\addon.gypi',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-I',  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp info spawn args 'C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared\_library',  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp info spawn args '-Dvisibility=default',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-Dnode\_root\_dir=C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0',  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp info spawn args '-Dnode\_gyp\_dir=C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-Dnode\_lib\_file=C:\\Users\\tejas\\AppData\\Local\\node-gyp\\Cache\\14.16.0\\\<(target\_arch)\\node.lib',  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp info spawn args '-Dmodule\_root\_dir=C:\Users\tejas\.node-red\node\_modules\firmata\node\_modules\@serialport\bindings',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-Dnode\_engine=v8',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '--depth=.',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '--no-parallel',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '--generator-output',  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp info spawn args 'C:\Users\tejas\.node-red\node\_modules\firmata\node\_modules\@serialport\bindings\build',  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args '-Goutput\_dir=.'  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp info spawn args ]  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp: C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi not found (cwd: C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings) while reading includes of binding.gyp while trying to load binding.gyp  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp ERR! configure error  
2021-03-25T11:40:08.893Z [err] npm ERR!  
2021-03-25T11:40:08.893Z [err] gyp ERR! stack Error: `gyp` failed with exit code: 1  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\configure.js:351:16)  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp ERR! stack at ChildProcess.emit (events.js:315:20)  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:277:12)  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.893Z [err] ERR! gyp ERR! System Windows\_NT 10.0.19042  
2021-03-25T11:40:08.893Z [err] npm ERR! gyp ERR! command "E:\nodejs\_nodered\node.exe" "C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" "rebuild"  
2021-03-25T11:40:08.893Z [err] npm  
2021-03-25T11:40:08.894Z [err] ERR! gyp ERR! cwd C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings  
2021-03-25T11:40:08.894Z [err] npm ERR! gyp ERR! node -v v14.16.0  
2021-03-25T11:40:08.894Z [err] npm ERR! gyp ERR! node-gyp -v v7.1.2  
2021-03-25T11:40:08.894Z [err] npm ERR! gyp ERR! not ok  
2021-03-25T11:40:08.954Z [err]  
2021-03-25T11:40:08.954Z [err] npm  
2021-03-25T11:40:08.954Z [err] ERR! A complete log of this run can be found in:  
2021-03-25T11:40:08.954Z [err] npm ERR! C:\Users\tejas\AppData\Local\npm-cache\_logs\2021-03-25T11\_40\_08\_894Z-debug.log  
2021-03-25T11:40:08.968Z rc=1

Then after i try to install from **cmd** :

C:\Users\tejas\>cd .node-red

C:\Users\tejas.node-red\>npm install node-red-node-arduino  
npm ERR! code 1  
npm ERR! path C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings  
npm ERR! command failed  
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  
npm ERR! gyp info it worked if it ends with ok  
npm ERR! gyp info using node-gyp@7.1.2  
npm ERR! gyp info using node@14.16.0 | win32 | x64  
npm ERR! gyp info find Python using Python version 3.9.2 found at "C:\Python39\python.exe"  
npm ERR! gyp info find VS using VS2017 (15.9.28307.1440) found at:  
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"  
npm ERR! gyp info find VS run with --verbose for detailed information  
npm ERR! gyp info spawn C:\Python39\python.exe  
npm ERR! gyp info spawn args [  
npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\gyp\gyp\_main.py',  
npm ERR! gyp info spawn args 'binding.gyp',  
npm ERR! gyp info spawn args '-f',  
npm ERR! gyp info spawn args 'msvs',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Users\tejas\.node-red\node\_modules\firmata\node\_modules\@serialport\bindings\build\config.gypi',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\addon.gypi',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi',  
npm ERR! gyp info spawn args '-Dlibrary=shared\_library',  
npm ERR! gyp info spawn args '-Dvisibility=default',  
npm ERR! gyp info spawn args '-Dnode\_root\_dir=C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0',  
npm ERR! gyp info spawn args '-Dnode\_gyp\_dir=C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp',  
npm ERR! gyp info spawn args '-Dnode\_lib\_file=C:\\Users\\tejas\\AppData\\Local\\node-gyp\\Cache\\14.16.0\\\<(target\_arch)\\node.lib',  
npm ERR! gyp info spawn args '-Dmodule\_root\_dir=C:\Users\tejas\.node-red\node\_modules\firmata\node\_modules\@serialport\bindings',  
npm ERR! gyp info spawn args '-Dnode\_engine=v8',  
npm ERR! gyp info spawn args '--depth=.',  
npm ERR! gyp info spawn args '--no-parallel',  
npm ERR! gyp info spawn args '--generator-output',  
npm ERR! gyp info spawn args 'C:\Users\tejas\.node-red\node\_modules\firmata\node\_modules\@serialport\bindings\build',  
npm ERR! gyp info spawn args '-Goutput\_dir=.'  
npm ERR! gyp info spawn args ]  
npm ERR! gyp: C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi not found (cwd: C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings) while reading includes of binding.gyp while trying to load binding.gyp  
npm ERR! gyp ERR! configure error  
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1  
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\configure.js:351:16)  
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:315:20)  
npm ERR! gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:277:12)  
npm ERR! gyp ERR! System Windows\_NT 10.0.19042  
npm ERR! gyp ERR! command "E:\nodejs\_nodered\node.exe" "C:\Users\tejas\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" "rebuild"  
npm ERR! gyp ERR! cwd C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings  
npm ERR! gyp ERR! node -v v14.16.0  
npm ERR! gyp ERR! node-gyp -v v7.1.2  
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\Users\tejas\AppData\Local\npm-cache\_logs\2021-03-25T11\_42\_49\_853Z-debug.log

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 March 2021 13:38 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/4 "2021-03-25T13:38:53Z")

</div>

I think this is probably the key line in the log

> [@tejas\_45](#):
>
> 2021-03-25T11:40:08.893Z [err] ERR! gyp: C:\Users\tejas\AppData\Local\node-gyp\Cache\14.16.0\common.gypi not found (cwd: C:\Users\tejas.node-red\node\_modules\firmata\node\_modules@serialport\bindings) while reading includes of binding.gyp while trying to load binding.gyp

Unfortunately I have no idea what to do about it. Google yields some suggestions but I don't see one that looks particularly relevant to your problem. I see @dceejay is one of the maintainers of the node so perhaps he will be able to help.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 March 2021 13:59 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/5 "2021-03-25T13:59:42Z")

</div>

I notice that you are also using npm 7 and node 14. Generally for anything that has a binary build in it we prefer to be cautious and recommend nodejs 12 and npm 6.  
In fact looking at the firmata library we rely on it uses serialport version8 which only goes up to node12 - so yes - the answer is you need to drop back to node12.

---

<div class="post-metadata">

**Author:** ![tejas\_45](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tejas\_45](https://discourse.nodered.org/u/tejas_45)\
**Post date:** [25 March 2021 21:47 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/6 "2021-03-25T21:47:38Z")

</div>

Thank you so much for your reply.....!!!

It worked... I installed nodejs (12.19.1) & npm (6.14.8) by using nvm.

---

<div class="post-metadata">

**Author:** ![tejas\_45](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tejas\_45](https://discourse.nodered.org/u/tejas_45)\
**Post date:** [25 March 2021 21:48 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/7 "2021-03-25T21:48:00Z")

</div>

Thank You....!!

---

<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:** [8 April 2021 21:48 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-arduino-0-3-1/43153/8 "2021-04-08T21:48:05Z")

</div>

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