-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Reverting to nvm default version Now using node v10.15.3 (npm v6.9.0) repeatedly #2018
Comments
That text, "Reverting to nvm default version", does not come from nvm. Perhaps you've added a script that takes over |
Thanks for the reply! I'm looking into that. In the meantime, I tried removing nvm and starting fresh. I do see there is an issue with install and The error itself and the full output below it: /home/nate/.nvm/nvm.sh: line 25: cd: -q: invalid option
cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
|
Also, after removal I get the following now:
|
You should try to remove your override to cd - check your zshrc |
Thanks again for your help! I don't have a manual override that I know of. Nothing in .zshrc that I can see, anyway. I'm using zsh and oh-my-zsh. I tried removing the few oh-my-zsh plugins I had installed but, nothing changed. I do have a bunch of aliases that I'm not sure where they are coming from. I checked .profile, .bashrc et al. (both in home and /etc too) and .zshrc (which I do use.) I'm currently trying to Google search a way to connect an alias to its file but, not having much luck.
I'll keep trying to figure it out. |
Try |
|
hmm, that’s very confusing. The cd -q error seems like something i can address, but that “reverting” output can’t be triggered by nvm. |
I do see that nvm debug says that node is aliased to nodejs; that should be removed ASAP. Only ubuntu’s broken repository calls it nodejs. |
I also see multiple copies of nvm’s dirs in your PATH (i also don’t know what linuxbrew is, but homebrew often causes issues with node and nvm). |
I removed linuxbrew. Going to install nvm again and see how it takes. |
I removed yarn as well and the node alias to nodejs (I seem to remember that being some odd bug.) The PATH now looks more reasonable. So far, I'm not getting the cd error any longer and I didn't get any errors during nvm install. I'll include What a weird error in that all things seemed to point to nvm itself. Anyway, I'll see how I manage from here. Thanks again for your help!
|
Operating system and version:
Ubuntu 18.04.2
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, Homebrew):curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
What steps did you perform?
Ran the above and removed
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
from ~/bashrc and placed it into ~/.zshrcWhat happened?
When running some commands I get the following over and over again. I've tried setting defaults but, that didn't seem to help.
What did you expect to happen?
I expect not to the see the the below message over and over again:
Is there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?In .zshrc I have the following:
The text was updated successfully, but these errors were encountered: