Keep getting: No such File or directory when I open the terminal

Each time I open a terminal, I get the following:

bash: /usr/local/Cellar/nvm/0.33.0/nvm.sh: No such file or directory

I tried to reboot. I don’t know why it suddenly appeared. Any guesses guys?

+4
source share
2 answers

You need to update nvm via homebrew:

brew upgrade nvm

+15
source

I was getting the same error after I installed a different version of NVM manually (forgetting that I installed an older version via homebrew). This led to the wrong configuration path in your .bash_profile, .bashrc, or any other similar file that runs every time a new terminal window starts.

https://github.com/creationix/nvm#installation, -

export NVM_DIR=~/.nvm
[ -s $NVM_DIR/nvm.sh ] && . $NVM_DIR/nvm.sh

NVM. , die , NVM ~/.nvm

, .

0

Source: https://habr.com/ru/post/1667326/


All Articles