Can't use NVM

Node version manager is kind of hiding from me. I installed it from Manjaro official repos, but it won't run:

$ pacman -Qi nvm
Name            : nvm
Version         : 0.35.2-1
Description     : Node Version Manager - Simple bash script to manage multiple active node.js versions
Architecture    : any
URL             : https://github.com/nvm-sh/nvm
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : bash: bash completion [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 115.58 KiB
Packager        : Stefano Capitani <stefano@manjaro.org>
Build Date      : Sun Mar 1 12:27:50 2020
Install Date    : Mon Jun 8 23:49:14 2020
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

[ben@paul-mnj ~]$ nvm install node
bash: nvm: command not found
$ command -v nvm

Yields no output.

I already tried closing the terminal an re-running the commands as suggested on the Github page.

Not sure is related, but should give some ideas




When you install using the package manager - you get some info explaining how to use nvm - please refer below sample (it does things a little different than the official instructions on github)

➜  ~ sudo pacman -Syu nvm
:: Synchronizing package databases...
...
You need to source nvm before you can use it. Do one of the following
or similar depending on your shell (and then restart your shell):

  echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
  echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc

You can now install node.js versions (e.g. nvm install 10) and
activate them (e.g. nvm use 10).

init-nvm.sh is a convenience script which does the following:

[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec

You may wish to customize and put these lines directly in your
.bashrc (or similar) if, for example, you would like an NVM_DIR
other than ~/.nvm or you don't want bash completion.

See the nvm readme for more information: https://github.com/creationix/nvm

Optional dependencies for nvm
    bash: bash completion [installed]
:: Running post-transaction hooks...

Forum kindly sponsored by