node.js - How to install package from github repo in Yarn -


when use npm install fancyapps/fancybox#v2.6.1 --save, fancybox pkg @ v2.6.1 tag installed. behavior described in docs

i want ask, how yarn?

is command right alternative? in yarn docs isn't format.

yarn add fancyapps/fancybox#v2.6.1

yarn add <git remote url> installs package remote git repository. yarn add <git remote url>#<branch/commit/tag> installs package remote git repository @ specific git branch, git commit or git tag. yarn add https://my-project.org/package.tgz installs package remote gzipped tarball. 

2.6.1 not avaliable in fancybox git version

yarn add https://github.com/fancyapps/fancybox [remote url]  yarn add  https://github.com/fancyapps/fancybox#3.0  [branch]  yarn add https://github.com/fancyapps/fancybox#5cda5b529ce3fb6c167a55d42ee5a316e921d95f [commit] 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -