Skip to content

Commit 34fde57

Browse files
[Doc] Add macOS install script note about Git, close nvm-sh#1782
1 parent b15709e commit 34fde57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ command -v nvm
7171
```
7272
simply close your current terminal, open a new terminal, and try verifying again.
7373

74+
**Note:** Since OS X 10.9, `/usr/bin/git` was preset by Xcode command line tools, which caused Git can't be properly detected if it's installed or not, you need to manually install Git before running the install script, otherwise, it'll failed. ((see [#1782](https://github.com/creationix/nvm/issues/1782))
75+
7476
**Note:** On OS X, if you get `nvm: command not found` after running the install script, one of the following might be the reason:-
7577
- 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
7678
- you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry.

0 commit comments

Comments
 (0)