Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NVM Install Error: Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.

Tags:

node.js

nvm

I JUST wiped and reformatted my entire Macbook Retina drive to start from scratch, installed homebrew, installed xcode and accepted terms and conditions, went to install nvm with curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash and got the following error:

=> nvm is already installed in /Users/dillon/.nvm, trying to update using git
=> => Compressing and cleaning up git repository

=> Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
   OR
=> Append the following lines to the correct file yourself:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm

=> 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

echo $PATH returns /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin if that's any help.

I tried opening an issue on github but haven't received a response

Any idea what I can do to get nvm and node properly running?

like image 362
dillon23 Avatar asked Jun 16 '18 05:06

dillon23


1 Answers

Didn't read this from the nvm install instructions. It fixed my problem.

Note: On OS X, if you get nvm: command not found after running the install script, one of the following might be the reason:-

your system may not have a [.bash_profile file] where the command is set up. Simply create one with touch ~/.bash_profile and run the

install script again you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry.

like image 154
dillon23 Avatar answered Nov 03 '22 01:11

dillon23