npm publish方式将npm包发布到nexus私服命令整理

npm adduser -registry http://xxx.xx.x.x:xxxx/repository/npm-hosted/
或者
npm login --registry=http://xxx.xx.x.x:xxxx/repository/npm-hosted/

npm publish -registry http://xx.xx.xx.xx:xxx/repository/npm-hosted/

或者:

在package.json 中添加——
"publishConfig": {
    "registry": "仓库地址"
  },

npm publish

links:
https://blog.csdn.net/wjyyhhxit/article/details/103595333

你可能感兴趣的:(npm publish方式将npm包发布到nexus私服命令整理)