- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9.5k
Closed
Labels
Description
Install nvm on a clean macOS will fail as below:
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12540  100 12540    0     0  43532      0 --:--:-- --:--:-- --:--:-- 43693
=> Downloading nvm from git to '/Users/peter/.nvm'
=> xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Failed to clone nvm repo. Please report this!
It'll also open a dialog to ask about installing Xcode with command line tools or not:

The problem is because the path /usr/bin/git is actually the built-in Xcode, so nvm can find git successfully and assume git is installed and working.
panzerdp and VampireAchaoholybean