当前位置: 首页 > 后端技术 > Node.js

npm私服使用Nexus搭建问题总结

时间:2023-04-03 12:20:20 Node.js

在npm上运行任何命令都会报错401unauthorized。无论是使用管理员还是超级用户发布包到nexusnpm仓库,都需要设置NexusRepositoryManager的权限。否则,您将无法登录我们的私服。在Security->Realms列中,选择npmBearerTokenRealm作为Active。参考链接[https://juejin.im/post/5c8918...][https://stackoverflow.com/que...]npmpublisherrorput400badrequest错误原因:nrm使用npm-group仓库地址解决:添加publishConfig:{registry:publishaddress}到package.json参考链接:[https://groups.google.com/a/g...]