Issue
Trying to install nvm following the command from the website (curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash) and I get this error
=> Downloading nvm as script to '/home/ahmed/.nvm'
Failed to download 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/nvm-exec'
Failed to download 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/bash_completion'
Failed to download 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/nvm.sh'
=> nvm source string already in /home/ahmed/.bashrc
=> bash_completion source string already in /home/ahmed/.bashrc
main: line 433: /home/ahmed/.nvm/nvm.sh: No such file or directory
=> 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
Solution
Ended up reinstalling the OS which fixed the problem
Answered By - meds Answer Checked By - Marie Seifert (WPSolving Admin)