Install npm module from gitlab private repository

前端 未结 9 1785
孤城傲影
孤城傲影 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:10

    Just for anyone else who stumbles across this, I couldn't get it working over HTTPS at all - seems it doesn't support the direct link to the repo (e.g. https://git.domain.com/user/somerepo.git), nor does it support the .tar, .tar.bz or .zip archive versions.

    It only seems to work with the .tar.gz archive.

    Full example (with tagged version):

    https://git.domain.com/user/somerepo/repository/archive.tar.gz?ref=v1.2.3

提交回复
热议问题