Issue running command "npm install --unsafe-perm"

I got a new server for hosting my minecraft servers and I’m having an issue trying to install it.
I’m running Ubuntu Server 18.04.3 LTS and everything is up-to-date.

When I try to run the command “npm install --unsafe-perm” it gives me an error.
Here’s the log:

I’m thinking that 18.04.3 is too new and doesn’t have everything together so I’m going to try to install 17.04 LTS and see if I have the same issue.

Update: 17.04 refused to work. So, after reinstalling 18.04.3 and following This everything worked after a reboot.