New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on a clean macOS without git installed #1782

Closed
PeterDaveHello opened this Issue Apr 10, 2018 · 7 comments

Comments

Projects
None yet
2 participants
@PeterDaveHello
Contributor

PeterDaveHello commented Apr 10, 2018

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:
1

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.

@ljharb

This comment has been minimized.

Collaborator

ljharb commented Apr 10, 2018

I'm not sure how this can be addressed; typically the first thing you always have to do (manually) when setting up a new Mac is install the Xcode command line tools.

@PeterDaveHello

This comment has been minimized.

Contributor

PeterDaveHello commented Apr 10, 2018

I haven't found a method to suppress the GUI dialog asking to install Xcode command line tools, otherwise we can at least escape from that failure without providing useful info :(

@ljharb

This comment has been minimized.

Collaborator

ljharb commented Apr 10, 2018

I think that installing those prior to doing anything else - including installing nvm - is just something Mac devs need to know how to do.

@PeterDaveHello

This comment has been minimized.

Contributor

PeterDaveHello commented Apr 12, 2018

Maybe I can send a PR to just mention that README.md?

@ljharb ljharb changed the title from Can't install on a clean macOS without git installded to Can't install on a clean macOS without git installed Apr 12, 2018

@ljharb

This comment has been minimized.

Collaborator

ljharb commented Apr 12, 2018

I suppose, but i still think it’s something that a Mac dev just needs to know, and I’m not sure why they’d be learning it at the point of installing nvm.

@PeterDaveHello

This comment has been minimized.

Contributor

PeterDaveHello commented Apr 12, 2018

I'll like to mention that also because we can't properly handle it, we don't know if anyone would install nvm first ;)

@ljharb

This comment has been minimized.

Collaborator

ljharb commented Apr 12, 2018

i suppose, sure

PeterDaveHello added a commit to PeterDaveHello/nvm that referenced this issue Apr 12, 2018

PeterDaveHello added a commit to PeterDaveHello/nvm that referenced this issue Apr 12, 2018

ljharb added a commit to PeterDaveHello/nvm that referenced this issue Apr 15, 2018

ljharb added a commit to PeterDaveHello/nvm that referenced this issue Apr 15, 2018

ljharb added a commit to PeterDaveHello/nvm that referenced this issue Apr 15, 2018

@ljharb ljharb closed this in #1787 Apr 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment