Install specific branch from github using Npm

后端 未结 8 1706
自闭症患者
自闭症患者 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:45

    Another approach would be to add the following line to package.json dependencies:

    "package-name": "user/repo#branch"
    

    For example:

    "dependencies": {
        ... other dependencies ...
    
        "react-native": "facebook/react-native#master"
    }
    

    And then do npm install or yarn install

提交回复
热议问题