How to install package from github repo in Yarn

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

    I use this short format for github repositories:

    yarn add github_user/repository_name#commit_hash

提交回复
热议问题