一般使用nexus私有库所有公司内裤node modules仓库的时候,常用npm作为包管理工具,有时候如果使用yarn作为包管理工具的话,.npmrc 中必须添加 always-auth=true
registry=https://nexus-registry-url.com
always-auth=true
_auth=<base64-token-value>
然后就可以使用yarn 安装依赖了。
一般使用nexus私有库所有公司内裤node modules仓库的时候,常用npm作为包管理工具,有时候如果使用yarn作为包管理工具的话,.npmrc 中必须添加 always-auth=true
registry=https://nexus-registry-url.com
always-auth=true
_auth=<base64-token-value>
然后就可以使用yarn 安装依赖了。