추가할 수 있습니다 Git 저장소(tarball)으로 의존하는원사
지정하여 원격 URL(HTTPS 또는 SSH):
yarn add <git remote url> installs a package from a remote git repository.
yarn add <git remote url>#<branch/commit/tag> installs a package from a remote git repository at specific git branch, git commit or git tag.
yarn add https://my-project.org/package.tgz installs a package from a remote gzipped tarball.
여기에 몇 가지 예가 나와 있습니다.
yarn add https://github.com/fancyapps/fancybox [remote url]
yarn add ssh://github.com/fancyapps/fancybox#3.0 [branch]
yarn add https://github.com/fancyapps/fancybox#5cda5b529ce3fb6c167a55d42ee5a316e921d95f [commit]
(참고:Fancybox v2.6.1 지't 에서 사용할 수 있는 Git 버전입니다.)
대한GitHub(또는 이와 유사한)개인 저장소:
yarn add 'ssh://[email protected]:myproject.git#<branch,tag,commit>'
npm install 'ssh://[email protected]:myproject.git#<branch,tag,commit>'