我们正在使用npm代理存储库从公共npm注册表获取包 我们使用npm托管存储库在我们的vpn中发布包。
我想在我的应用程序中从代理和我的私有存储库安装软件包。
我们正在使用Nexus存储库管理器。
这是我的npmrc:
init.author.name=Name
init.author.email=you@example.com
email=you@example.com
always-auth=true
_auth=authtoken
@myco:_auth=authtoken
registry=npmproxyurl
@myco:registry=npmhostedurl
strict-ssl=false
ca=null
@myco:always-auth=true
我可以发布到托管但无法从中安装。 我在安装时不断收到此错误
npm info retry will retry, error on last attempt: Error: This request requires auth credentials. Run `npm login` and repeat the request.
我运行了npm登录,但输入凭据不适用于托管。 有人可以帮忙吗?