Moon Light Box

Time is Money

NPM - Use Private NPM Registry

| Comments

# npm config set registry "http://10.10.10.10:8081/repository/npmjs-public/"
# vim .npmrc
registry=http://10.10.10.10:8081/repository/npmjs-public/

!wq
# npm login –registry=http://10.10.10.10:8081/repository/npmjs-XXX
# npm publish --registry http://10.10.10.10:8081/repository/npmjs-XXX
# vim package.json

"publishConfig" : {
    "registry" : "http://10.10.10.10:8081/repository/npmjs-XXX"
  },
  
!wq

https://books.sonatype.com/nexus-book/3.0/reference/npm.html

http://www.voidcn.com/article/p-azhukjwm-xu.html

http://www.voidcn.com/article/p-calaqsej-xu.html

npm

Comments

comments powered by Disqus