You probably don't need to read this.
I encountered this on a server with a newer npm version and an older openSSH version. A few node dependencies were stored in private git repositories, and npm just simply wouldn't fetch them.
The fix was to downgrade npm to v6
npm i -g npm@6