Instalei o NVM usando o cURL, conforme a solução do tópico https://cursos.alura.com.br/forum/topico-nvm-no-linux-138590.
igor@igor-pessoal:~$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13527 100 13527 0 0 18555 0 --:--:-- --:--:-- --:--:-- 18555 => Downloading nvm from git to '/home/igor/.nvm' => Cloning into '/home/igor/.nvm'... remote: Enumerating objects: 333, done. remote: Counting objects: 100% (333/333), done. remote: Compressing objects: 100% (283/283), done. remote: Total 333 (delta 38), reused 150 (delta 25), pack-reused 0 Receiving objects: 100% (333/333), 177.15 KiB | 503.00 KiB/s, done. Resolving deltas: 100% (38/38), done. => Compressing and cleaning up git repository
=> Appending nvm source string to /home/igor/.bashrc => Appending bash_completion source string to /home/igor/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now:
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
E agora? tento dar nvm --version ou nvm -v e o terminal me retorna:
igor@igor-pessoal:~$ nvm -v Command 'nvm' not found, but there are 13 similar ones.
igor@igor-pessoal:~$ nvm --version Command 'nvm' not found, but there are 13 similar ones.
O que posso fazer?