How to install package from github repo in Yarn

后端 未结 5 1943
遇见更好的自我
遇见更好的自我 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:51

    This is described here: https://yarnpkg.com/en/docs/cli/add#toc-adding-dependencies

    For example:

    yarn add https://github.com/novnc/noVNC.git#0613d18
    

提交回复
热议问题