-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
support platforms which does not have shasum command #171
Conversation
use sha1sum command if there is no shasum command
support platforms which does not have shasum command
I realize this issue is closed, but I just grabbed master on OSX and cannot install any remote versions of node. I'm receiving basically the same output: RadioFreePro:bin drew$ nvm install v0.8.15
######################################################################## 100.0%
bash: sha1sum: command not found
Checksums do not match.
Binary download failed, trying source.
Additional options while compiling:
######################################################################## 100.0%
bash: sha1sum: command not found
Checksums do not match.
nvm: install v0.8.15 failed! My knowledge of bash is limited, but doesn't directing If I change it to be similar to the if [ ! `which shasum` ]; then
shasum='sha1sum'
fi then I'm able to install again. If this sounds alright, I can make a pull request. |
I think kirbysayshi's change is right. The condition |
confirmed, thanks. |
i confirm that it's broken |
it's broken. OSX Lion 10.7.3. FYI. |
sha1sum: command not found OSX 10.8.2 |
The suggested patch fixes the issue btw! Am 07.12.2012 um 06:55 schrieb JZ [email protected]: sha1sum: command not found — |
Same issue for Centos 6.4:
|
@kirbysayshi master currently has |
For OSX user: just add This should also work on linux but with the file |
Use sha1sum command if there is no shasum command.
Such like CentOS, for example, there are platforms which doesn't have 'shasum' command. On the such platform, we can install nothing because cannot calculate checksum. Like below: