node.js - "nvm" command not recognized in new command line windows/tabs despite presence of "NVM_DIR" variable in both ~/.bashrc and ~/.bash_profile -
my colleague installed node version manager on macbook using homebrew, , ran 2 commands suggested @ end of install script:
export nvm_dir=~/.nvm source $(brew --prefix nvm)/nvm.sh
everything works fine in terminal window in install took place, if opens new terminal window or new tab, has install nvm on again.
my level of command-line experience relatively low (i don't know don't know), i'm not sure start diagnosing problem. suggestions welcome.
the instructions brew
after installing nvm
are:
add following $home/.bashrc, $home/.zshrc, or shell's equivalent configuration file: source $(brew --prefix nvm)/nvm.sh
on os x default settings, want $home/.profile
(or ~/.profile
). add line above end of file.
running line once set nvm
in shell session. if add .profile
file, run @ beginning of every shell session.
Comments
Post a Comment