小编Mih*_*man的帖子

Nexus oss 3 yarn 登录问题 - 私有 npm 存储库

我已经设置了 nexus oss 3,它看起来很酷。由于 --pure-lockfile 选项,我所有的项目都是使用 yarn 安装的。

重现问题的步骤:
1. 使用私有 npm 注册表设置 nexus oss 3(如文档中所述)
2. 禁用来自 nexus oss 3 管理面板的匿名访问
3. 在带有 alpine 的 linux 服务器上尝试 yarn install --pure-lockfile (你必须有一个包托管在 package.json 中的私有 repo 上)
4. 不起作用,返回 401 错误

我尝试了一切,但我无法让纱线登录以获取这些包。

如果我使用 npm install,它可以工作。

有人可以告诉我如何使用上面的设置使纱线在 nexus oss3 中工作吗?

nexus npm yarnpkg

2
推荐指数
1
解决办法
4948
查看次数

标签 统计

nexus ×1

npm ×1

yarnpkg ×1