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

sha1sum command not found on OS X 10.9.5 #659

Closed
pkyeck opened this issue Feb 13, 2015 · 2 comments
Closed

sha1sum command not found on OS X 10.9.5 #659

pkyeck opened this issue Feb 13, 2015 · 2 comments
Labels
installing node: checksums This relates to checksum checking of downloaded node archives. shell alias clobbering Anything dealing with users shadowing builtins with aliases or functions.

Comments

@pkyeck
Copy link

pkyeck commented Feb 13, 2015

I'm getting this message on my mac after installing the current version (0.23.3) of nvm:

$ nvm install 0.12.0
######################################################################## 100,0%
-bash: sha1sum: command not found
Checksums do not match.
Binary download failed, trying source.

other node versions produce the same error.

found an old issue (#181) for this but it was closed years ago ... anyone with the same problem?

@pkyeck
Copy link
Author

pkyeck commented Feb 13, 2015

ok, found the problem - I'm using a .aliases file from someone else and in there was a line saying:

# OS X has no `sha1sum`, so use `shasum` as a fallback
command -v sha1sum > /dev/null || alias sha1sum="shasum"

commenting this out fixed the problem for me.

@pkyeck pkyeck closed this as completed Feb 13, 2015
@ljharb
Copy link
Member

ljharb commented Feb 13, 2015

Thanks - aliasing builtins is something we try to bypass, but is generally not recommended.

ljharb added a commit that referenced this issue Feb 16, 2015
@ljharb ljharb added installing node: checksums This relates to checksum checking of downloaded node archives. shell alias clobbering Anything dealing with users shadowing builtins with aliases or functions. and removed installing node: checksums This relates to checksum checking of downloaded node archives. labels Feb 17, 2015
cappadona added a commit to cappadona/dotfiles that referenced this issue Aug 4, 2015
The sha1sum alias was preventing nvm from installing node. Hat tip to
nvm-sh/nvm#659 for making this a quick and easy fix.

This reverts commit af441ca (mathiasbynens#141).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing node: checksums This relates to checksum checking of downloaded node archives. shell alias clobbering Anything dealing with users shadowing builtins with aliases or functions.
Projects
None yet
Development

No branches or pull requests

2 participants