Install specific branch from github using Npm

后端 未结 8 1683
自闭症患者
自闭症患者 2020-11-29 18:57

I would like to install bootstrap-loader from github in my project using npm

Currently they are maintaining two version of this project which are comaptible with web

相关标签:
8条回答
  • 2020-11-29 20:00

    Tried suggested answers, but got it working only with this prefix approach:

    npm i github:user/repo.git#version --save -D
    
    0 讨论(0)
  • 2020-11-29 20:01

    I'm using SSH to authenticate my GitHub account and have a couple dependencies in my project installed as follows:

    "dependencies": {
      "<dependency name>": "git+ssh://git@github.com/<github username>/<repository name>.git#<release version | branch>"
    }
    
    0 讨论(0)
提交回复
热议问题