For info I had the issues experienced here, Unable to create server and NO_PROFILES_DOWNLOADED.
My server build instructions now include :
npm install --unsafe-perm
errors produced
npm install userid --unsafe-perm
npm audit fix
npm audit reports problems to resolve but they would introduce breaking changes, I have not done npm audit fix --force
I can rebuild a test server and get the exact messages if that would be of interest. It only takes a short while.
I was also thinking of posting the instructions for others if that would be useful, with the exception of the above they seem pretty robust and with no errors (and they result in a working server )
M