How to install package from github repo in Yarn

后端 未结 5 1947
遇见更好的自我
遇见更好的自我 2020-12-22 22:09

When I use npm install fancyapps/fancybox#v2.6.1 --save, so fancybox package at v2.6.1 tag will be installed. This behavior is described in docs

I want

5条回答
  •  太阳男子
    2020-12-22 22:57

    For GitHub (or similar) private repository:

    yarn add 'ssh://git@github.com:myproject.git#'
    npm install 'ssh://git@github.com:myproject.git#'
    

提交回复
热议问题