Install npm module from gitlab private repository

前端 未结 9 1842
孤城傲影
孤城傲影 2020-11-28 01:31

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

9条回答
  •  盖世英雄少女心
    2020-11-28 02:27

    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.

提交回复
热议问题