node.jsnvm

Getting the error message "This is not the package you are looking for" when trying to run nvm, why?


Went to use NVM today, and I got this error.

This is not the package you are looking for: please go to http://nvm.sh

So I went there, and installed the new version. Installation went through, but I still get the same error when I try to run it. I deleted the .nvm folder, and tried reinstalling. Nothing is working.

Is there a way to fix this error, or another way to downgrade my version of node?


Solution

  • see http://nvm.sh

    https://github.com/nvm-sh/nvm/blob/master/README.md#install--update-script and run the script that starts with wget:

    It should look like this:

    wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
    

    But go copy the script from the link, cause the version might change. After you do this, close and reopen your terminal.