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 del does not seem to work #17

Closed
rootical opened this issue Jan 7, 2016 · 11 comments
Closed

nrm del does not seem to work #17

rootical opened this issue Jan 7, 2016 · 11 comments

Comments

@rootical
Copy link

rootical commented Jan 7, 2016

Hello, thanks for your work.

I can not delete any registry:

nrm del test
nrm ls
And I still see the test registry.

@shallwefootball
Copy link

1 similar comment
@lococo--0
Copy link

@GoldyMark
Copy link

Because ~/.nrmrc cache the custom registry.

You can use nrm del test, then vi ~/.nrmrc and clear your custom registry settings. That's OK.

@rootical
Copy link
Author

@GoldyMark thanks for suggestion, so why do I need to nrm del test then?

@GoldyMark
Copy link

@rootical Ah ha. You are right. I mistakenly thought about that nrm would write the custom registry into /usr/local/lib/node_modules/nrm/registries.json.

@GoldyMark
Copy link

I found the problem in line 45.
.command('del|rm <registry>')

Bug fix:
.command('del <registry>')

@Pines-Cheng
Copy link

这个问题fix了吗?每次都手动清好麻烦。

@Pana
Copy link
Owner

Pana commented Jul 3, 2016

It is fixed now, sorry for the slow response, my apologies

@Pana Pana closed this as completed Jul 3, 2016
@flyingcrp
Copy link

依然存在这个问题,在ubuntu16下面。如图
23

@GoldyMark
Copy link

@Alexjake 这个命令只适用于自定义的npm仓库,taobao属于nrm内建仓库,不能删除。你可以看一下nrm包下的cli.js的源码(onDel方法)。

@flyingcrp
Copy link

@GoldyMark 删除无所谓的。主要是test Fetch Error的问题。无法测试速度。没看见有具体异常

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

7 participants