Skip to content
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

Error: Global NVM install error "Please report this!" #1773

Closed
guylepage3 opened this issue Apr 4, 2018 · 3 comments · Fixed by #1775
Closed

Error: Global NVM install error "Please report this!" #1773

guylepage3 opened this issue Apr 4, 2018 · 3 comments · Fixed by #1775
Labels
installing nvm Problems installing nvm itself root / multiuser issues Anything related to using `sudo` or `su`, or using nvm across multiple user accounts.

Comments

@guylepage3
Copy link
Contributor

I was attempting a global NVM install on macOS 10.13.4 and received the following error message.

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | NVM_DIR=/usr/local/nvm bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12540  100 12540    0     0  32541      0 --:--:-- --:--:-- --:--:-- 32571
=> Downloading nvm from git to '/usr/local/nvm'
=> mkdir: /usr/local/nvm: Permission denied
ls: /usr/local/nvm: No such file or directory
fatal: could not create work tree dir '/usr/local/nvm': Permission denied
Failed to clone nvm repo. Please report this!
@ljharb
Copy link
Member

ljharb commented Apr 4, 2018

nvm is intended to be installed per-user, not globally.

Specifically here, the issue is that you likely need sudo to be able to modify /usr/local

@ljharb ljharb added root / multiuser issues Anything related to using `sudo` or `su`, or using nvm across multiple user accounts. installing nvm Problems installing nvm itself labels Apr 4, 2018
@guylepage3
Copy link
Contributor Author

Hm. that's very odd considering it's on the README.md of this repository.

screenshot 2018-04-04 16 09 19

Let me know if you'd like me to do a pull request to move this from the README.md.

@ljharb
Copy link
Member

ljharb commented Apr 4, 2018

You’re right; that’s an unfortunate example path.

Interestingly, i removed this in 6d2c9a9 in December 2015; #549 seems to have accidentally reintroduced it in June 2016.

A PR to reintroduce the change from 6d2c9a9 would be very appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing nvm Problems installing nvm itself root / multiuser issues Anything related to using `sudo` or `su`, or using nvm across multiple user accounts.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants