* nexus에 npm repoisotry를 생성한다.
* nexus.test.com > (Admin Login) -> Reposiroty 이동
* Create reposotory > npm(hosted) > Name 입력 후 > Create repository 눌러 생성
권한 부여
* Security > Realms > Active Realms 에서 'npm Bearer Token Realm' 활성화 시킴
NPM Repository 접속
$> npm login --registry=http://nexus.test.com/repository/npm/
Username:
Password:
$> npm publish
...
npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
$> npmpublish
...
npm ERR! This package has been marked as private
npm ERR! Remove the 'private' field from the package.json to publish it.