首页 > 其他分享 >Npm 使用 Nexus 仓库的登录时候出现授权的问题

Npm 使用 Nexus 仓库的登录时候出现授权的问题

时间:2022-10-29 19:31:35浏览次数:49  
标签:Npm npm realm 登录 ERR Nexus log


例如,我们在 npm 登录 Nexus 的仓库的时候提示错误如下:

npm ERR! code E401
npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\YuChengHu\AppData\Local\npm-cache\_logs\2022-10-26T20_09_51_660Z-debug-0.log



Npm 使用 Nexus 仓库的登录时候出现授权的问题_npm


问和解决

上面的问题在于 Nexus 的 realm 配置。

把 Nexus 的 NPM 配置移动到右侧即可。



Npm 使用 Nexus 仓库的登录时候出现授权的问题_javascript_02



标签:Npm,npm,realm,登录,ERR,Nexus,log
From: https://blog.51cto.com/cwikius/5806482

相关文章