Published on

Verdaccio 설치 및 사용법

Authors
  • avatar
    Name
    황도연
    Twitter

사설 NPM 모듈 관리자 설치 ( verdaccio )

설치 방법

Verdaccio 설치 현황

protocol: http
adddress: localhost
port: 4873

Verdaccio storage: /var/lib/verdaccio/storage
Verdaccio config: /etc/verdaccio/config.yaml
Verdaccio user file: /var/lib/verdaccio/htpasswd
Verdaccio daemon: /lib/systemd/system/verdaccio.service

Verdaccio storage user & group
user: verdaccio
group: verdaccio

Private npm service

How to publish

$ yarn publish --registry http://localhost.com:4873/

NPM login

$ npm login --registry http://localhost:4873/ --auth-type=legacy
npm notice Log in on http://localhost:4873/
Username: test
Password:
Email: (this IS public) plmokn7034soo@icloud.com
Logged in as localhost on http://localhost:4873/.

--auth-type=legacy 옵션은 npm 9.0 이상일 때 사용.

Set default registry for @test/ui

  • @test 로 시작하는 모듈의 레지스트리 설정.
$ npm config set @test:registry http://localhost:4873/

Install

$ npm i --save @test/test-model
or
$ yarn add @test/test-model