Search code examples
bashterminalnvm

Error on terminal open: -bash: /nvm.sh: No such file or directory


Every time I open my terminal the first line says: -bash: /nvm.sh: No such file or directory.

I just installed nvm on this laptop and obviously I did something wrong.

Does anyone know what commands I can use to fix this?

I tried the following command to remove nvm from my laptop: $ rm -rf ~/.nvm

Sadly, this did not fix my problem.


Solution

  • Check your .bashrc file (usually in the home folder). See answers to this question. There's probably a line reading /nvm.sh somewhere in there -- if so, just delete it.