nvm: add warning and fix for node install loss
Closes Homebrew/homebrew#29122. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
dcedb2e6d4
commit
edbaae578d
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ class Nvm < Formula
|
|||
|
||||
source $(brew --prefix nvm)/nvm.sh
|
||||
|
||||
Node installs will be lost upon upgrading nvm. Add the following above the source line to move install location and prevent this:
|
||||
|
||||
export NVM_DIR=~/.nvm
|
||||
|
||||
Type `nvm help` for further information.
|
||||
EOS
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue