Web-UI update script returns an error

So I seem to have somewhat found out what is wrong but I still have no solution.

By running

curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get -y install nodejs

I get the same exact problem here:

This is before running the update scripts, so far all that I have done is run the installing node 10.x script and rebooted, also when I ran the installation script, it told me that curl was not installed so I installed curl and did the same command, no errors, outputs a success, reboot and I get the web-UI to respond twice then freezes.