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

trying to dl nvm in wsl. nvm wasn't recognized as command in term #2308

Open
richernote opened this issue Sep 21, 2020 · 3 comments
Open

trying to dl nvm in wsl. nvm wasn't recognized as command in term #2308

richernote opened this issue Sep 21, 2020 · 3 comments
Labels
needs followup We need some info or action from whoever filed this issue/PR. OS: windows

Comments

@richernote
Copy link

Operating system and version:

windows 10 WSL2 w/ unbuntu 20.04

nvm debug output:

nvm ls output:

How did you install nvm?

Tired to add nvm to the plugin array on my /.zshrc file, save close and reboot term. put nvm install in term but it didn't recognize the nvm command

What steps did you perform?

installed via git clone then altered the script

What happened?

nvm was then cloned and when put cd /.nvm in term noted it was saved in master not HOME

What did you expect to happen?

Is there anything in any of your profile files that modifies the PATH?

changed:
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

to:
export NVM_DIR="$master/.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

@ljharb
Copy link
Member

ljharb commented Sep 21, 2020

I have no idea what $master is, but $HOME should be your user directory. The $ denotes a variable, not a hardcoded string.

Are you still unable to get nvm to work when you fix the export line?

@ljharb ljharb added OS: windows needs followup We need some info or action from whoever filed this issue/PR. labels Sep 21, 2020
@richernote
Copy link
Author

It only worked once I changed it. I ended up uninstalling zsh and going through bash to download everything.

@ljharb
Copy link
Member

ljharb commented Sep 21, 2020

If it's working, can you fill out the nvm debug part of the issue template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs followup We need some info or action from whoever filed this issue/PR. OS: windows
Projects
None yet
Development

No branches or pull requests

2 participants