Skip to content

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

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    OS: windowsneeds followupWe need some info or action from whoever filed this issue/PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions