Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nrm 当前源不显示标记 * #145

Open
ZYQIO opened this issue Mar 11, 2023 · 3 comments
Open

nrm 当前源不显示标记 * #145

ZYQIO opened this issue Mar 11, 2023 · 3 comments

Comments

@ZYQIO
Copy link

ZYQIO commented Mar 11, 2023

nrm的cli.js 的141行 && 换成 ||

@zjtt
Copy link

zjtt commented Mar 14, 2023

nrm的cli.js

if (hasOwnProperty(customRegistries, name) && (name in registries || customRegistries[name].registry === registry.registry)) {
    registry[FIELD_IS_CURRENT] = true;
    customRegistries[name] = registry;
}

换成

if (hasOwnProperty(customRegistries, name) || (name in registries || customRegistries[name].registry === registry.registry)) {
    registry[FIELD_IS_CURRENT] = true;
    customRegistries[name] = registry;
}

@raohuiyong
Copy link

最新版本似乎修复了

@zjtt
Copy link

zjtt commented Jul 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants