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 ls * hidden #130

Open
soyof opened this issue Feb 22, 2022 · 4 comments
Open

nrm ls * hidden #130

soyof opened this issue Feb 22, 2022 · 4 comments

Comments

@soyof
Copy link

soyof commented Feb 22, 2022

cli.js

    getCurrentRegistry(function (cur) {
        var info = [''];
        var allRegistries = getAllRegistry();
        const keys = Object.keys(allRegistries);
        const len = Math.max(...keys.map(key => key.length)) + 3;
		

        Object.keys(allRegistries).forEach(function (key) {
            var item = allRegistries[key];
            //  bug    item[FIELD_IS_CURRENT]  ---> undefined
            var prefix = item[FIELD_IS_CURRENT] && equalsIgnoreCase(item.registry, cur) ? '* ' : '  ';   //  '   '

            info.push(prefix + key + line(key, len) + item.registry);
        });

        info.push('');
        printMsg(info);
    });
}
@868618
Copy link

868618 commented Jun 28, 2022

me too

@codepandy
Copy link

the same question.

@zhenya-zhu
Copy link

zhenya-zhu commented Nov 2, 2022

Same issue. Use npm config ls could see that registry switched successfully, but nrm does not show the *

M1 Mac, Zsh

image

@win-96
Copy link

win-96 commented Nov 28, 2022

nrm的 cli.js 的141行 &&换成||就好了

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

5 participants