问题标签 [npm-private-modules]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
408 浏览

docker - 在 docker 中验证 npm 私有注册表

我们将作用域 js 包发布到私有注册表(由我们使用 Verdaccio 管理)。

这意味着在我们的生产环境中,我们需要对我们的私有注册表进行身份验证才能使用yarn install. 最简单的方法是什么?

0 投票
0 回答
30 浏览

npm - 使用管道在 bitbucket 上的私有自托管 npm 存储库包

我正在尝试使用自托管(在 bitbucket 中)npm 包。我能够在本地使用它而没有任何问题,但是在运行 bitbucket 管道时出现错误。它在 npm install 步骤中失败。

这是我使用私有 npm 包在 repo 上的内容:

两个存储库都在 bitbucket 中的同一组织(私有)下。

在使用自托管私有 npm 包的库上,我通过以下操作创建了一个密钥:设置 > 管道 > SSH 密钥(bitbucket 上的自生成密钥)

在共享库上,我通过转到设置 > SSH 密钥 > 添加密钥(自行生成)添加了这个 SSH 密钥。

还添加了 bitbucket.org 作为已知地址。

目前bitbucket-pipelines.yml没有任何特殊配置,我只是在运行npm install(失败的地方)和npm run test.

这是我的配置,但在运行管道时仍然失败。

这是运行管道时的错误: