npm ERR! code E401 npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
这里可能是当前的项目中没有登录公司的私有仓库,需要在该项目目录下重新登录公司的私有仓库
group、hosted都需要重新登录
npm config set registry='私有仓库地址'
usernmae:
password:
email:
重新执行npm install 查看是否登录成功
文章讲述了在npm安装过程中遇到的E401错误,原因是未正确登录到公司私有仓库SonatypeNexusRepositoryManager。解决方案是设置npmregistry为私有仓库地址,输入相应的用户名、密码和邮箱进行登录。
2056

被折叠的 条评论
为什么被折叠?



