Node-red-contrib-buffer-parser Installation

Hi,
I am an absolute beginner with Node-RED. I know many other programming languages (C++, Java, PLC programming, etc.), but not Node-RED yet. Currently, I'm working on an application for communication between different devices. The main topic is data conversion. From what I understand, this should be possible using the "node-red-contrib-buffer-parser" module. However, when I try to install this library, I only get error messages. What am I doing wrong?

Best regards and thanks,
Dirk

Hi and welcome,

This means no internet connectivity or DNS issue.

Hi,
thanks for the quick answer. I have a PC and a IoT2050 on which node red runs.
The PC is connected to the www and to the IoT2050. Is it necassary that the IoT ist also connected to the www ... ??
Best regards and thanks,
Dirk

To install nodes, yes.

  1. Install verdaccio in this PC that is connected to the www (internet)
  2. Assign this PC a static IP address on the local network
  3. Expose verdaccio server to the local network. You have to edit its config file to let the server connect to 0.0.0.0:4843
  4. Go to your IoT2050 and configure npm to use verdaccio as the registry to fetch packages from.
npm set registry
http://LOCAL_NETWORK_IP:4873

This will essentially turn your PC into a local npm cache and proxy to all npm packages that IoT2050 wants to install

npm <-> www <-> PC (Verdaccio) -> IoT2050 (npm install PACKAGE)

You can use this strategy to create local npm caches on the edge if you have many IoT2050 in a certain place.
Verdaccio can also be used to whitelist/blacklist packages you don't want your node-red instances to install.
You could have global verdaccio proxy which all edge verdaccio instances connects to. The global one becomes a kind of firewall for packages installation.

npm <-> www <-> Verdaccio[G] <-> vpc <-> Verdaccio[edge] -> IoT2050 (npm install PACKAGE)
1 Like

Now it works. Thank you.