# Install Node.js on Wago Device

**URL:** <https://www.wago.community/t/install-node-js-on-wago-device/140>\
**Category:** Hardware and Linux\
**Tags:** how-to\
**Created:** [June 27, 2022, 11:13am UTC](https://www.wago.community/t/install-node-js-on-wago-device/140 "2022-06-27T11:13:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)\
**Post date:** [June 27, 2022, 11:13am UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/1 "2022-06-27T11:13:50Z")

</div>

Documentation by this readme-file:

> **[GitHub - thorgrimjansrud/node.js-on-wago-device: How to install Node.js on...](https://github.com/thorgrimjansrud/node.js-on-wago-device)**
>
> How to install Node.js on Wago device. Contribute to thorgrimjansrud/node.js-on-wago-device development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![WagoKurt](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagokurt/32/11_2.png) [@WagoKurt](https://www.wago.community/u/WagoKurt)\
**Post date:** [September 2, 2022, 10:40pm UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/2 "2022-09-02T22:40:15Z")

</div>

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

```auto
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).

---

<div class="post-metadata">

**Author:** ![hoprodgarage](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/hoprodgarage/32/147_2.png) [@hoprodgarage](https://www.wago.community/u/hoprodgarage)\
**Post date:** [September 6, 2022, 2:27pm UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/3 "2022-09-06T14:27:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [September 6, 2022, 2:47pm UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/4 "2022-09-06T14:47:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)\
**Post date:** [September 7, 2022, 6:22am UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/5 "2022-09-07T06:22:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andreimoreira](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@andreimoreira](https://www.wago.community/u/andreimoreira)\
**Post date:** [September 18, 2024, 3:21pm UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/6 "2024-09-18T15:21:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![WagoThomas](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagothomas/32/292_2.png) [@WagoThomas](https://www.wago.community/u/WagoThomas)\
**Post date:** [September 19, 2024, 7:05am UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/7 "2024-09-19T07:05:58Z")

</div>

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.

> **[cc100-howtos/HowTo\_AddPython3 at main · WAGO/cc100-howtos](https://github.com/WAGO/cc100-howtos/tree/main/HowTo_AddPython3)**
>
> Here you will find all the example code for extensions and tools for the cc100 - WAGO/cc100-howtos

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

> **[GitHub - WAGO/pfc-firmware-sdk-G2: Firmware SDK for PFC200-G2 family](https://github.com/WAGO/pfc-firmware-sdk-G2)**
>
> Firmware SDK for PFC200-G2 family

Hope this will get you a bit further 🙂

---

<div class="post-metadata">

**Author:** ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)\
**Post date:** [September 19, 2024, 12:02pm UTC](https://www.wago.community/t/install-node-js-on-wago-device/140/8 "2024-09-19T12:02:57Z")

</div>

There is also a prebuild [here](https://github.com/WAGO/vscode-server/tree/main/ipk/Python%20addon) that could be tested. Install by WBM or CLI.

If PIP needs to be installed:

```auto
python3 -m ensurepip --upgrade

```
