We are using GitLab for our private project. There are some forked libraries from github, that we want to install as npm module. Installing that module directly from npm is
None of the other answers worked for me for a private gitlab.com repo...
This works however:
npm i -S git+ssh://git@gitlab.com:/.git
Its just the git ssh clone url from the project page's "clone" input field with git+ssh:// added to the front of it.
git+ssh://