How to install package from github repo in Yarn
问题 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 to ask, how to do this with yarn ? Is this command the right alternative? In yarn docs isn't anything about this format. yarn add fancyapps/fancybox#v2.6.1 回答1: You can add any Git repository (or tarball) as a dependency to yarn by specifying the remote URL (either HTTPS or SSH): yarn add <git remote url> installs a package from a remote git