I will try to help you, there is how i installed genieacs 1.1.3 on ubuntu 18 mini
Dependency ( it’s also for GUI)
apt install git wget nodejs npm mongodb python libxml2-dev build-essential gnupg ruby-bundler ruby-dev libffi-dev libpq-dev libsqlite3-dev tmux -y
another dependency
npm i later
npm i seedrandom
npm i redis
npm i bindings
npm i nan
npm i node-pre-gyp
With this conf i can correctly install libxmljs
npm config set user 0
npm config set unsafe-perm true
npm i libxmljs
and then
npm i genieacs --unsafe-perm -g