Install Node.js on Wago Device

Documentation by this readme-file:

1 Like

To install Node-RED on the host, once Node.JS is installed;

npm install -g --unsafe-perm node-red
node-red start

Note: most palette modules will install, however some that depend on Python3 and will not install on the PFC200 (like node-red-contrib-modbus).

1 Like

Guess Node.js / Node-Red native on the CC100 will free up som resources as well. Not sure if the home assistant module also could use Python3 though. I need to research this some more and give it a go. I only run Node-Red on the CC100 so would have been nice to get rid of docker.

1 Like

I’m not sure the Docker overhead is really revelant in term of ressources…
Docker will make updates much easier.
For instance you can stop the actual version, try to run the updated version, and if there is any issue you can still go back and improve the availability of the system.
Quentin

2 Likes

I think we need both possibilities (docker + direct install) because poeple thinks differently about the techology. Docker is great, its so simple at first sight, but there is a lot of things to learn also here. Then we must difference between using docker in a “real-life” developement/production environment versus just testing/demo purpose. Just for testing node.js / Grafana on our platform it may be easier to start with a direct install, and then maybe move on to docker later if needed. Different applications support for ARMv7l would also be something to think about wathever needs to be installed.

2 Likes

Hello! @WagoKurt @WagoGrim I installed Node.js directly on the Linux of the WAGO PFC200, but I need to use the package node-red-node-sqlite, which requires Python 3 to be installed. I am receiving an error when trying to install this package in Node-RED. I would like to know if it is possible to install Python 3 directly on the WAGO, as I do not intend to use Docker for this project.

I haven’t tested this on PFC200, but I guess this guide will apply for it as well. You need to use the PFC200 SDK of course.

I see the instructions regarding the SDK is old in that guide but here is the new and easier way to work with the SDK

Hope this will get you a bit further :slight_smile:

There is also a prebuild here that could be tested. Install by WBM or CLI.

If PIP needs to be installed:

python3 -m ensurepip --upgrade