npm 的组注册表对订单集没有影响
group registry for npm doesn't has effect with order set
问题
我使用私有和代理注册表为我的 npm 注册表设置了 Nexus 服务器。配置为:
- proxy: npmjs-org, remote repository: https://registry.npmjs.org
- hosted: npm-hosted, manul upload module antd 3.20.0 to this private registry
- group: npm-public, members: npmjs-org and npm-hosted
根据 nexus 官方文档,
Note that the order of the repositories listed in the Member section is > important. When the repository manage searches for a component in a
repository group, it will return the first match. To reorder a
repository in this list, click and the drag the repositories and groups > in the Members list or use the arrow buttons between the Available and
Members list. These arrows can be used to add and remove repositories as > well.
https://help.sonatype.com/repomanager3/configuration/repository-management#RepositoryManagement-ManagingRepositoriesandRepositoryGroups
我希望安装 antd 3.20.0 配置:
- npm-public contains npm-hosted and npmjs-org
- npm-hosted is above npmjs-org
但是我得到了 antd 3.20.1。
这是 nexus 的问题还是我在配置中遗漏了什么?
PS
我也试试下面
我得到了antd 3.20.1
- npm-public contains npm-hosted and npmjs-org
- npmjs-org is above npm-hosted
我得到了antd 3.20.0
npm-public containers npm-hosted
环境
- nexus 3.14 or 3.17
- node 10.15.0
- module antd in npm-hosted: 3.20.0, antd in npmjs-org: 3.20.1
- the command used for download module is npm install antd --save --verbose
我觉得这里有点误会。只有在多个存储库中存在完全相同版本的组件时,组中存储库的顺序才有意义。因此,如果您有两个包含 antd@3.20.0 的存储库,则将从组中较高的存储库下载组件。
如果需要3.20.0版本,请使用'npm install antd#3.20.0'下载。
问题 我使用私有和代理注册表为我的 npm 注册表设置了 Nexus 服务器。配置为:
- proxy: npmjs-org, remote repository: https://registry.npmjs.org
- hosted: npm-hosted, manul upload module antd 3.20.0 to this private registry
- group: npm-public, members: npmjs-org and npm-hosted
根据 nexus 官方文档,
Note that the order of the repositories listed in the Member section is > important. When the repository manage searches for a component in a repository group, it will return the first match. To reorder a repository in this list, click and the drag the repositories and groups > in the Members list or use the arrow buttons between the Available and Members list. These arrows can be used to add and remove repositories as > well. https://help.sonatype.com/repomanager3/configuration/repository-management#RepositoryManagement-ManagingRepositoriesandRepositoryGroups
我希望安装 antd 3.20.0 配置:
- npm-public contains npm-hosted and npmjs-org
- npm-hosted is above npmjs-org
但是我得到了 antd 3.20.1。 这是 nexus 的问题还是我在配置中遗漏了什么?
PS 我也试试下面
我得到了antd 3.20.1
- npm-public contains npm-hosted and npmjs-org
- npmjs-org is above npm-hosted
我得到了antd 3.20.0
npm-public containers npm-hosted
环境
- nexus 3.14 or 3.17
- node 10.15.0
- module antd in npm-hosted: 3.20.0, antd in npmjs-org: 3.20.1
- the command used for download module is npm install antd --save --verbose
我觉得这里有点误会。只有在多个存储库中存在完全相同版本的组件时,组中存储库的顺序才有意义。因此,如果您有两个包含 antd@3.20.0 的存储库,则将从组中较高的存储库下载组件。
如果需要3.20.0版本,请使用'npm install antd#3.20.0'下载。