Install npm module from gitlab private repository

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

    For me set the package.json as below works.

    "dependencies": {
        "": "git+http://:@url.git",
    }
    

    The token is get from your "Profile Settings - Access Token".

提交回复
热议问题