简体   繁体   English

使用 Gitlab 作为 Proget 的提要,具有存储包裹的独特位置

[英]Using Gitlab as Proget's feed with a unique place to store packages

Is it possible to use gitlab's package repository to feed our npm packages as well as public packages online.是否可以使用 gitlab 的 package 存储库来提供我们的 npm 包以及在线公共包。 On proget it is possible to register common npm packages and my private npm packages under the same URL using a proxy.在 proget 上,可以使用代理在同一 URL 下注册常见的 npm 包和我的私有 npm 包。 Is it possible to do the same with Gitlab so that pointing to gitlab's repository in the.npmrc would be enough to install all the dependencies?是否可以对 Gitlab 执行相同的操作,以便在 .npmrc 中指向 gitlab 的存储库就足以安装所有依赖项?

Yes, you can have a different registry for your personal packages and eg company packages.是的,您可以为您的个人包裹和公司包裹使用不同的注册表。 You can reference them by @my-gitlab-username/foo-package or @company/bar-package .您可以通过@my-gitlab-username/foo-package@company/bar-package引用它们。

NPM packages hosted on npmjs.com which get installed by npm install <package> will always be resolved if the lookup on your provided Gitlab package registry fails. NPM packages hosted on npmjs.com which get installed by npm install <package> will always be resolved if the lookup on your provided Gitlab package registry fails. Usually you do not have to provide a separate proxy.通常您不必提供单独的代理。

Multiple private/non-public registries can be targeted by using npm install @company/<package> .使用npm install @company/<package>可以定位多个私有/非公共注册表。 So there should be no issue in targeting multiple Proget and/or Gitlab npm registries at the same time.因此,同时针对多个 Proget 和/或 Gitlab npm 注册表应该没有问题。

Authentification is described here: https://stackoverflow.com/a/42648251/4236831此处描述了身份验证: https://stackoverflow.com/a/42648251/4236831

yalc“找不到 package <package) in store ( root .yalc packages)"< div><div id="text_translate"><p> 我有一个本地 npm package 已对其进行了更改,但是当我尝试将它们添加到我的消费者存储库以使用yalc add &lt;package&gt;测试这些更改时,我收到此消息Could not find package &lt;package&gt; in store (/root/.yalc/packages/package), skipping. . 当我运行yalc dir时,它显示/home/username/.yalc的存储位置。 对于我的生活,我不知道为什么 yalc 试图从根目录添加包。 有人遇到过这种情况吗?</p></div></package)> - yalc "Could not find package <package) in store (/root/.yalc/packages)"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ProGet 不从 Drop Path 导入 npm 包 - ProGet not importing npm packages from Drop Path 设置私有 NPM 提要和发布包 - Setup Private NPM feed and publish Packages 从私有 gitlab 注册表安装多个 npm 包 - Install multiple npm packages from private gitlab registry VSTS 包源:配置客户端以使用 vsts 源后无法安装公共 npm 包 - VSTS package feed: Cannot install public npm packages after configuring client to work with vsts feed 在 Astro 中使用 React 包 - Using React packages in Astro 使用NPM并通过Grunt打包路径 - Using NPM and packages paths with Grunt 使用gulp恢复npm软件包 - Restoring npm packages using gulp yalc“找不到 package <package) in store ( root .yalc packages)"< div><div id="text_translate"><p> 我有一个本地 npm package 已对其进行了更改,但是当我尝试将它们添加到我的消费者存储库以使用yalc add &lt;package&gt;测试这些更改时,我收到此消息Could not find package &lt;package&gt; in store (/root/.yalc/packages/package), skipping. . 当我运行yalc dir时,它显示/home/username/.yalc的存储位置。 对于我的生活,我不知道为什么 yalc 试图从根目录添加包。 有人遇到过这种情况吗?</p></div></package)> - yalc "Could not find package <package) in store (/root/.yalc/packages)" 如何在VSTS任务中使用feed中的npm软件包? - How can I use the npm packages from feed in my VSTS task? 使用 requirejs 加载 npm 包 - using requirejs to load npm packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM