Install specific branch from github using Npm

后端 未结 8 1684
自闭症患者
自闭症患者 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 19:52

    you can give git pattern as version, yarn and npm are clever enough to resolve from a git repo.

    yarn add any-package@user-name/repo-name#branch-name
    

    or for npm

    npm install --save any-package@user-name/repo-name#branch-name
    

提交回复
热议问题