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.
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.
Welcome to the forum.
To help others help you, please use the full name of the nodes which you are having problems with.
Thanks a lot
Could you copy and paste the logs please.
Also, what version of node-RED are you using.
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.
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
You could try contacting the node author requesting that it is fixed.
so thankful for you.
try LoRa node, you are problem or not ...?
and how contact the node author ...?
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.
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
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
.
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.
Thanks bro.
Its worked. (version 12)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.