Make sure that the correct curl is used in your machine.
- Uninstall
curlif it is installed usingsnapby runningsudo snap remove curl. - Install
curlusingapt-getby runningsudo apt-get install curl. This is done due to permissions issues withsnap curl.
Install nvm if you haven't done so already by running curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash.