Install NPM from a private git repository

cuudev·2023년 4월 18일

개발을 하다보면 private 저장소의 npm 모듈을 설치해야 하는 경우가 있다.
SSH key가 등록되어 있다면 간단한 명령으로 가능하다.

git clone 명령이 아래와 같다면

git clone git@bitbucket.org:{account}/{repository}.git

간단하게 git+ssh:// 프로토콜만 앞에 붙여서 설치할 수 있다.

npm i git+ssh://git@bitbucket.org:{account}/{repository}.git
profile
자꾸 까먹어서...

0개의 댓글