# Problem with this nodes

**URL:** <https://discourse.nodered.org/t/problem-with-this-nodes/36359>\
**Category:** General\
**Created:** [22 November 2020 20:48 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359 "2020-11-22T20:48:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.zendedel75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m.zendedel75/32/32466_2.png) [@m.zendedel75](https://discourse.nodered.org/u/m.zendedel75)\
**Post date:** [22 November 2020 20:48 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/1 "2020-11-22T20:48:21Z")

</div>

Hi guys, I problem with install heart-rate and LoRa node in node red. when click on install, show failed install and in log show that 'for each' Error.

any body install this nodes successfully...?

Thanks.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [22 November 2020 20:54 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/2 "2020-11-22T20:54:30Z")

</div>

Welcome to the forum.

To help others help you, please use the full name of the nodes which you are having problems with.

---

<div class="post-metadata">

**Author:** ![m.zendedel75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m.zendedel75/32/32466_2.png) [@m.zendedel75](https://discourse.nodered.org/u/m.zendedel75)\
**Post date:** [22 November 2020 21:00 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/3 "2020-11-22T21:00:34Z")

</div>

Thanks a lot 🙏

1. node-red-contrib-ble-heart-rate 0.2.0  
and
2. node-red-contrib-lorawan 0.0.4  
(Node-RED module for the LoRaWAN RN2483 and RN2903 radio modules)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [22 November 2020 21:02 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/4 "2020-11-22T21:02:53Z")

</div>

Could you copy and paste the logs please.  
Also, what version of node-RED are you using.

---

<div class="post-metadata">

**Author:** ![m.zendedel75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m.zendedel75/32/32466_2.png) [@m.zendedel75](https://discourse.nodered.org/u/m.zendedel75)\
**Post date:** [22 November 2020 21:12 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/5 "2020-11-22T21:12:17Z")

</div>

# [ERROR TypeError: Cannot read property 'forEach' of undefined]

and after failed install, dont run again node red, and i must remove package heart-rate node that created in package module, to run again node red.

node red version: v1.2.5

Excuse me, I not typing English well.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [22 November 2020 21:20 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/6 "2020-11-22T21:20:30Z")

</div>

> [@m.zendedel75](#):
>
> and after failed install, dont run again node red, and i must remove package heart-rate node that created in package module, to run again node red

I see that there is a problem with the `node-red-contrib-ble-heart-rate` node, already reported, but unfortunately not fixed - [package.json error · Issue #1 · tomo-makes/node-red-contrib-ble-heart-rate · GitHub](https://github.com/tomo-makes/node-red-contrib-ble-heart-rate/issues/1)  
You could try contacting the node author requesting that it is fixed.

---

<div class="post-metadata">

**Author:** ![m.zendedel75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m.zendedel75/32/32466_2.png) [@m.zendedel75](https://discourse.nodered.org/u/m.zendedel75)\
**Post date:** [22 November 2020 21:24 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/7 "2020-11-22T21:24:54Z")

</div>

so thankful for you.

try LoRa node, you are problem or not ...?

and how contact the node author ...?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [22 November 2020 21:36 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/8 "2020-11-22T21:36:58Z")

</div>

> [@m.zendedel75](#):
>
> try LoRa node, you are problem or not ...?

Can you go to your user directory (on a Raspberry Pi it will be `home/pi/.node-red`) and then install the node by `npm install node-red-contrib-lorawan`  
You will then see the full node install log, copy the whole of the log, and paste it, so we can see what is happening. There will be quite a few lines.

---

<div class="post-metadata">

**Author:** ![m.zendedel75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m.zendedel75/32/32466_2.png) [@m.zendedel75](https://discourse.nodered.org/u/m.zendedel75)\
**Post date:** [22 November 2020 22:11 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/9 "2020-11-22T22:11:24Z")

</div>

C:\Users\Mohammad\>npm install node-red-contrib-lorawan  
npm ERR! code 1  
npm ERR! path C:\Users\Mohammad\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! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.  
npm ERR! serialport.cpp  
npm ERR! C:\Users\Mohammad\node\_modules@serialport\bindings\src\serialport.cpp(329,96): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Mohammad\node\_modules@serialport\bindings\build\bindings.vcxproj]  
npm ERR! C:\Users\Mohammad\node\_modules@serialport\bindings\src\serialport.cpp(330,96): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Mohammad\node\_modules@serialport\bindings\build\bindings.vcxproj]  
npm ERR! C:\Users\Mohammad\node\_modules@serialport\bindings\src\serialport.cpp(331,96): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Mohammad\node\_modules@serialport\bindings\build\bindings.vcxproj]  
npm ERR! C:\Users\Mohammad\node\_modules@serialport\bindings\src\serialport.cpp(378,106): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Mohammad\node\_modules@serialport\bindings\build\bindings.vcxproj]  
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@15.2.1 | win32 | x64  
npm ERR! gyp info find Python using Python version 3.9.0 found at "C:\Python39\python.exe"  
npm ERR! gyp info find VS using VS2019 (16.8.30717.126) found at:  
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\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:\Program Files\nodejs\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\Mohammad\node\_modules\@serialport\bindings\build\config.gypi',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\addon.gypi',  
npm ERR! gyp info spawn args '-I',  
npm ERR! gyp info spawn args 'C:\Users\Mohammad\AppData\Local\node-gyp\Cache\15.2.1\include\node\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\Mohammad\AppData\Local\node-gyp\Cache\15.2.1',  
npm ERR! gyp info spawn args '-Dnode\_gyp\_dir=C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp',  
npm ERR! gyp info spawn args '-Dnode\_lib\_file=C:\\Users\\Mohammad\\AppData\\Local\\node-gyp\\Cache\\15.2.1\\\<(target\_arch)\\node.lib',  
npm ERR! gyp info spawn args '-Dmodule\_root\_dir=C:\Users\Mohammad\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\Mohammad\node\_modules\@serialport\bindings\build',  
npm ERR! gyp info spawn args '-Goutput\_dir=.'  
npm ERR! gyp info spawn args ]  
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe  
npm ERR! gyp info spawn args [  
npm ERR! gyp info spawn args 'build/binding.sln',  
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',  
npm ERR! gyp info spawn args '/nologo',  
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'  
npm ERR! gyp info spawn args ]  
npm ERR! gyp ERR! build error  
npm ERR! gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1  
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\lib\build.js:194:23)  
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:329:20)  
npm ERR! gyp ERR! stack at Process.ChildProcess.\_handle.onexit (node:internal/child\_process:277:12)  
npm ERR! gyp ERR! System Windows\_NT 10.0.19041  
npm 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"  
npm ERR! gyp ERR! cwd C:\Users\Mohammad\node\_modules@serialport\bindings  
npm ERR! gyp ERR! node -v v15.2.1  
npm ERR! gyp ERR! node-gyp -v v7.1.2  
npm ERR! gyp ERR! not ok

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [22 November 2020 22:25 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/10 "2020-11-22T22:25:32Z")

</div>

> [@Paul-Reed](#):
>
> Can you go to your user directory (on a Raspberry Pi it will be `home/pi/.node-red` )

You have not run the node install command from within your user directory.  
I don't use Windows, but isn't it `\Users\<Username>\.node-red` (perhaps a Windows user could confirm).  
In your case that would be `C:\Users\Mohammad\.node-red`.

---

<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:** [22 November 2020 22:35 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/11 "2020-11-22T22:35:59Z")

</div>

Also we don't recommend node 15 - for exactly these sorts of reasons. Many modules with native dependencies may not compile correctly. Please drop back to node14 or12.

---

<div class="post-metadata">

**Author:** ![m.zendedel75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m.zendedel75/32/32466_2.png) [@m.zendedel75](https://discourse.nodered.org/u/m.zendedel75)\
**Post date:** [23 November 2020 12:12 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/12 "2020-11-23T12:12:01Z")

</div>

Thanks bro.  
Its worked. (version 12)

---

<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:** [7 December 2020 12:12 UTC](https://discourse.nodered.org/t/problem-with-this-nodes/36359/13 "2020-12-07T12:12:13Z")

</div>

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