Node-RED Installation on UC-8100s
===
###### tags:`Application` `UC-8100` `Node-RED`
:::info
This document contains two different methods to install Node-RED on the UC-8100s.
**Disclaimer**: *Method Two contains open-source solution that is **NOT** actively maitained.*
:::
> [name=Anthony Ho, MUS Application Engineer]
## Method One
Access the unit via SSH and update debian as root.
```shell
$ sudo su
$ apt-get install update
```
Install Node.js amd update npm.
```shell
$ sudo curl -sL https://deb.nodesource.com/setup_6.x | bash -
$ sudo apt-get install -y nodejs
# Confirm that Node.js was installed correctly.
$ node -v
v6.14.0
$ sudo npm install npm --global
```
Install Node-RED with npm.
```shell
$ sudo npm install -g --unsafe-perm node-red
# Run Node-RED
$ cd .node-red/
$ node-red
```

Open the browser and enter the unit's socket address (eg. 192.168.119.226:1880).

## Method Two (via ThingsPro)
Download the following file:
[tp-node-red-arm7.tar.gz](https://github.com/imZack/pkg-node-red/releases/tag/20181204-v0.19.5) from https://github.com/imZack/pkg-node-red.
Open a browser and enter the unit's IP address.
Default credential:
**User/E-Mail**: admin@moxa.com
**Password**: admin1234
Select ```User Programs```.

Click ``Add a program``.

Upload the script file (tp-node-red-arm7.tar.gz).


Node-RED should now be accessible on port 1880.