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

6 Answers
6

Leave a Comment