nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't Select specific node version initially

shaquibimdad opened this issue · comments

Operating system and version: Arch linux 6.1.3-arch1-1

nvm debug output:

shaquibimdad@Arch ~> nvm debug
nvm: Unknown command or option: "debug" (see nvm -h for usage)
Strange idk why 

nvm ls output:

shaquibimdad@Arch ~ [1]> nvm ls
     system  
   v12.20.0 lts/erbium 
 ▶ v16.17.1 lts/gallium 

How did you install nvm? AUR

What steps did you perform? Tried to select node version

What happened?

shaquibimdad@Arch ~> node -v
v19.3.0
shaquibimdad@Arch ~> nvm list
     system  
   v12.20.0 lts/erbium 
 ▶ v16.17.1 lts/gallium 
shaquibimdad@Arch ~> nvm use 16.17.1
Now using Node v19.3.0 (npm 8.15.0) /usr/bin/node
shaquibimdad@Arch ~> node -v
v19.3.0
shaquibimdad@Arch ~> nvm use 12
Now using Node v12.20.0 (npm 6.14.8) ~/.local/share/nvm/v12.20.0/bin/node
shaquibimdad@Arch ~> node -v
v12.20.0
shaquibimdad@Arch ~> nvm use 16.17.1
Now using Node v16.17.1 (npm 8.15.0) ~/.local/share/nvm/v16.17.1/bin/node
shaquibimdad@Arch ~> node -v
v16.17.1
shaquibimdad@Arch ~> 

What did you expect to happen? By default node 19 is selected and nvm use dont work initially

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

if status is-interactive
    # Commands to run in interactive sessions can go here
end
#export (envsubst < .env)
export PATH="/usr/bin:$PATH"
export PATH="/home/shaquibimdad/.local/bin:$PATH"

export ANDROID_SDK_ROOT="/media/shaquib/aalinux/android-env/android-sdk/"
export ANDROID_SDK_TOOLS_DIR="$ANDROID_SDK_ROOT/tools"
export ANDROID_HOME="/media/shaquib/aalinux/android-env/android-sdk/"
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
export PATH="$ANDROID_HOME/platform-tools:$PATH"
export PATH="$ANDROID_HOME/emulator/:$PATH"
export PATH="/media/shaquib/projects/android-app-dev/flutter/bin:$PATH"

export CHROME_EXECUTABLE=google-chrome-stable

This doesn't seem like you're using this project - we don't display the LTS name like that in nvm ls.