-
-
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
Doesn't work on fresh install #1853
Comments
You'll note how the install script adds nvm lines to bashrc; but you're then using zshrc. Does nvm work fine in bash? What's your zshrc look like? |
It works fine in bash, and I have it added in my .zshrc. Here are the lines of code added: #NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
I'm very confused :-/ the line in question hasn't changed in a long time, and if there was a syntax error, every zsh user would have been complaining for awhile now. Can you share the rest of your zshrc, as well as the output of |
setopt:
Yeah, this worked before, I used NVM for about a year and this only has happened in the past few weeks.. |
One thing that would be helpful is (assuming you're on v0.33.11 now) downgrading to v0.33.10, and seeing if the problem still occurs? |
My stock zsh has: combiningchars
interactive
monitor
nonomatch
shinstdin
zle which means that the delta is: alwaystoend
autocd
autopushd
completeinword
extendedhistory
noflowcontrol
histexpiredupsfirst
histignoredups
histignorespace
histverify
incappendhistory
interactivecomments
longlistjobs
promptsubst
pushdignoredups
pushdminus
sharehistory If you try a binary search on those options - disabling half, try again, re-enable and disable the other half, etc - that also would help determine the fix. |
Hmm, same error, same line.. I can go into bash and install the node version I want, but still in ZSH it still seems to be the same error in v0.33.10 running the command: wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.10/install.sh | bash |
Thanks - if you're willing, we could also try going back farther - |
Alright, I tried /home/taxborn/.nvm/nvm.sh:1867: parse error near `)' Is it worth mentioning I use Oh My Zsh too? |
Also in |
(yes, it was worth mentioning, but i inferred it from your zshrc - omz tends to break nvm all the time because it sets a bunch of nonstandard options) Let's keep jumping back versions - |
I have some good news, |
Sweet, it works in |
Thanks, that's the first step :-) v0.26.1...v0.27.0 has a bunch of things. For the options, you can use |
Alright, after trying to binary-search my way through the |
Since nobody else has reported this, and the user has deleted their github account, I'm going to close this. Happy to reopen if there's a way to repro. |
I get the following error as soon as I source my
~/.zshrc
/home/taxborn/.nvm/nvm.sh:2038: parse error near `)'
I believe I have done everything right, and in the screen shot you can see that I have just installed it. Here is the line(s) in question.
Thank you!
The text was updated successfully, but these errors were encountered: