简体   繁体   English

私有npm存储库和私有npm注册表之间的区别

[英]Difference between private npm repository and private npm registry

I hear people talking about private npm repository and private npm registry. 我听到有人谈论私有npm存储库和私有npm注册表。 I wonder what is the difference between the two? 我想知道两者之间有什么区别? Also is private npm repository same as local npm repository? 私有npm存储库也与本地npm存储库相同吗? Is local npm repository same as the local node_modules folder? 本地npm存储库是否与本地node_modules文件夹相同? What is stored in the private npm repository/registry? npm私有存储库/注册表中存储了什么? The actual code, or just references where to get them? 实际的代码,还是只是引用在哪里获取它们?

I read that one could host his own npm registry, that will continuously replicate itself according to the official npm registry: npm-registry . 我读到一个人可以托管自己的npm注册表,根据官方npm注册表npm-registry ,它会不断复制自身。 But that cannot mean that the npm-registry itself would contain sources for all application, otherwise it would be way too big for everyone to just host by themselves? 但是,这并不意味着npm-registry本身将包含所有应用程序的源,否则对于每个人来说,仅靠自己托管就太大了吗? So it has to be some kind of info database that tells where to download the actual package etc? 因此,它必须是某种信息数据库,可以告诉您在哪里下载实际的软件包等?

Ended up using Q-Unit with Blanketjs for code coverage. 最终将Q-UnitBlanketjs结合使用以覆盖代码。

I never managed to get this working with Jasmine. 我从未设法与Jasmine合作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM