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
Although the question is about Gitlab, this question is quite well ranked in google search, so here is some more information about how to fix a similar issue I got with Github.
For me, only changing the url didnt make it work. Here are the steps I had to take to fix this :
git+ssh://git@github.com:owner/repo.git#master~/.ssh/config create the file if it doesnt exist) to force the use of the DeployKey instead of the default ssh keyAfter that the npm install simply worked. All the other options and solutions resulted of the npm install breaking