Echo: Please do not run this script as root; dont sudo it

Hi,
How do I fix this error while trying to build on ubuntu?

You need to run the script as a normal user. Not root.
The error message is very descriptive.

Hi, thanks for the reply. I am still new to this, how would I go about doing that? I set up the clone of the git repository in the root directory, so would that make any difference?

Don’t do that. Log in as a normal user. Clone to the home directory for that user. There should be no need to use sudo for anything other than the sudo apt install commands.