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

[bug] 当源的 url 中含大写时,nrm current 返回空 #50

Closed
guanghechen opened this issue Jun 20, 2019 · 3 comments
Closed

[bug] 当源的 url 中含大写时,nrm current 返回空 #50

guanghechen opened this issue Jun 20, 2019 · 3 comments

Comments

@guanghechen
Copy link

hey, 问题复现如下:

nrm add X http://X
nrm current   # 返回空值
nrm ls        # 在 X 项前面没有 * 号标识
npm config get registry # 返回 http://x

当把 X 替换为 x 则没有这个问题,初步判断应该是和 npm config get registry 返回的值比对时没有进行大小写转换?

@jingsam
Copy link
Contributor

jingsam commented Jun 20, 2019

域名不区分大小写

@guanghechen
Copy link
Author

额,我知道域名不区分大小写,所以能正常下载包,我的问题是 nrm current 会返回空,而产生这个问题的原因我推测是域名大小写的问题,麻烦你看清楚我上面说的,谢谢。

@EmilyMew
Copy link
Collaborator

感谢反馈。已修复,请等待下次发布。

Pana added a commit that referenced this issue Jul 18, 2019
fix: 🐛 当源的 url 中含大写时,nrm current 返回空 #50
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