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

例如,我们在 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

 

 

问和解决

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

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

 

 

 
posted @   huyuchengus  阅读(334)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2021-10-27 Jekyll 运行的时候提示错误 cannot load such file -- webrick (LoadError)
2020-10-27 Java 获得文件的指纹
2020-10-27 Spring Could not find unique TaskExecutor bean 错误
点击右上角即可分享
微信分享提示