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

NVM vs RVM #306

Closed
larryzhao opened this issue Oct 13, 2013 · 4 comments
Closed

NVM vs RVM #306

larryzhao opened this issue Oct 13, 2013 · 4 comments

Comments

@larryzhao
Copy link

I am using nvm with rvm on my Mac OS. The problem is every time nvm use v0.10.2 is executed. NVM will insert that bin path to the head of PATH like rvm.

That break the rule rvm set, that rvm path needs to be at the first place of PATH. Is there anyway to tell nvm not to place it in the first place of PATH but to append to PATH?

@ljharb
Copy link
Member

ljharb commented Oct 13, 2013

If nvm isn't in the beginning of the path, it might select the wrong node. Why does rvm need to be first? Shouldn't it just need to be before any other ruby binary locations?

@larryzhao
Copy link
Author

Yes, I understand that. Actually rvm thinks the same, it may select the wrong ruby.

So if I am using both rvm and nvm, they will fighting for the first place in $PATH. But this could hardly be a problem, because it's on my own Mac so I know there will be no problem currently. But the problem is if rvm's path is not at the first place would generate a very annoying WARNING on every act you interact with the shell.

And I am mainly a ruby developer now, using node on the side, so that's why I asked if there's a trigger that I could manually let nvm to append the path at last place since I will make sure that I will only install node with nvm.

@ljharb
Copy link
Member

ljharb commented Oct 15, 2013

It seems like the real problem is that rvm has an annoying warning. Since nvm doesn't issue a warning, perhaps it would be more appropriate to file a bug with rvm that the warning should only be issued if the wrong ruby is selected?

@larryzhao
Copy link
Author

Yep, on the side just talking in rvm irc channel, I add rvm_silence_path_mismatch_check_flag=0 to disable that warning.

Thanks.

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

2 participants