반응형
Yarn의 github repo에서 패키지를 설치하는 방법
을 사용하면 npm install fancyapps/fancybox#v2.6.1 --save
v2.6.1 태그의 fancybox 패키지가 설치됩니다. 이 동작은 문서에 설명되어 있습니다.
나는 이것을 어떻게 할 수 있는지 묻고 싶다 yarn
.
이 명령이 올바른 대안입니까? 원사 문서 에서는 이 형식에 대한 내용이 없습니다.
yarn add fancyapps/fancybox#v2.6.1
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.
2.6.1은 fancybox git 버전에서 사용할 수 없습니다.
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]
ssh 스타일 URL의 경우 URL 앞에 ssh를 추가하십시오.
yarn add ssh://<whatever>@<xxx>#<branch,tag,commit>
여기에 설명되어 있습니다 : https://yarnpkg.com/en/docs/cli/add#toc-adding-dependencies
예를 들면 :
yarn add https://github.com/novnc/noVNC.git#0613d18
대한 GitHub의 (또는 유사) 개인 저장소 :
yarn add 'ssh://git@github.com:myproject.git#<branch,tag,commit>'
npm install 'ssh://git@github.com:myproject.git#<branch,tag,commit>'
참고 URL : https://stackoverflow.com/questions/43411864/how-to-install-package-from-github-repo-in-yarn
반응형
'IT story' 카테고리의 다른 글
sizeof (bool)이 C ++ 언어 표준에 정의되어 있습니까? (0) | 2020.08.08 |
---|---|
레코드의 단일 필드를 할당하고 나머지 필드를 복사하는 간단한 방법은 무엇입니까? (0) | 2020.08.08 |
Android Studio-ADB 오류-“… 기기가 승인되지 않았습니다. (0) | 2020.08.07 |
터미널의 문자 인코딩을 얻는 방법 (0) | 2020.08.07 |
NLTK 토크 나이저를 사용하여 구두점을 제거하는 방법은 무엇입니까? (0) | 2020.08.07 |