-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Chore분류 태그에 존재하지 않은 이슈들은 chore로 전부 분류합니다.분류 태그에 존재하지 않은 이슈들은 chore로 전부 분류합니다.
Description
📄 작업 내용
- 개인 토큰 발급 (각자)
- GitHub Settings → Developer settings → Personal access tokens (classic)
- 설치용이면 scope: read:packages만 선택
- 토큰 생성 후 값 복사 (다시 못 봄)
2.로컬 환경변수 설정
- 터미널에서:
- export NPM_TOKEN=본인_토큰값
- 매번 하기 싫으면 ~/.zshrc에 추가
- 대상 레포에 .npmrc 설정
3.프로젝트 루트
- .npmrc 파일 만들기
4.npmrc 파일 내용 넣기 ( 4번 전체 복사 붙여 넣기 )
- @kyungchan3007:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
always-auth=true
5.패키지설치
- npm i @kyungchan3007/pinhouse-chat
- 설치 에러 시 확인
- echo $NPM_TOKEN 값 있는지
- 레포 접근 권한 있는지
- 토큰 scope가 read:packages인지
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Chore분류 태그에 존재하지 않은 이슈들은 chore로 전부 분류합니다.분류 태그에 존재하지 않은 이슈들은 chore로 전부 분류합니다.
Type
Projects
Status
Done