-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
unbound variable: REINSTALL_PACKAGES_FROM #1505
Comments
I have run into this too. The problem appears to be when running in a shell with These issues prevent using nvm from scripts with |
@alexjurkiewicz @mechalynx do you still see @alexjurkiewicz if you'd mind filing a new issue for |
Unfortunately I'm seeing the error on a shared CI server, so I can't go and change the nvm version. For the record I saw the ALIAS error with |
I still see |
@ljharb I tested I did a I originally encountered this through a bigger script, which I can't test right now because I'm in the process of heavily refactoring it. I will try installing nvm on a fresh VM though (since the system I tried already had it installed), to make sure it's fixed. |
FWIW, I was able to trigger this (while |
@joshdick Yeah I can reproduce that. The original unbound variable from @joshdick @ljharb Running All of this is with just Oh and sorry for not responding for 3 days now, I must have missed the mail among the rest. |
Thanks, I'll see what I can do. |
@mechalynx i'm not sure what pacman is, and afaik only apt calls it "nodejs". I can't reproduce any I'm going to close this for now, but please do file a new issue if you see any new instances of this problem. (Please wait until the next release before re-reporting |
@ljharb Sure thing dude, I'll be putting it to the test with the original script soon anyway. For future reference, |
Operating system and version: Arch Linux 4.10.9-1-ARCH / nvm 0.33.1
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, homebrew):install script from cloned repo
What steps did you perform?
installed nvm, ran nvm.sh manually to set up the environment, through a script
What happened?
nvm.sh
throws an unbound variable error on line 2474: $REINSTALL_PACKAGES_FROM - confirmed this isn't because of settings in the parent scriptWhat did you expect to happen?
nvm.sh
to complete successfullyIs there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?/etc/profile
setsPATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
I've managed to work around this by changing
nvm.sh
before execution:sed -i '2474,2476s/$REINSTALL_PACKAGES_FROM/${REINSTALL_PACKAGES_FROM:-}/' /home/username/.nvm/nvm.sh
this seems similar to #1413 , which I also worked around by setting
MANPATH=""
and then unsetting it afternvm.sh
but that issue is resolved in the master branch.The text was updated successfully, but these errors were encountered: