我使用 Sonatype nexus 作为我的存储库,我已将 npm 配置为具有公共和私有存储库。
我的 .npmrc 文件有配置
registry=<<private_repo_url>>/npm-group/
_auth=<<token>>
strict-ssl=false
always-auth=true
在本地计算机上安装私有包时出现以下错误
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:
虽然我可以将我的私有包发布到 <
我在
windows
笔记本电脑上使用 git bash
。
Sonatype Nexus 版本:3.15.2
Node.js:v12.21.0
npm:6.14.11
如有任何帮助,我们将不胜感激。