MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

curl nvm doesn't work on OS X #209

Closed bjarthur closed 10 years ago

bjarthur commented 10 years ago

in "step 1: install dev tools", this command does not work as expected on OS X 10.9.4:

curl https://raw.github.com/creationix/nvm/master/install.sh | sh

i had to manually cut and paste the install.sh into a file and chmod u+x it.

mmocny commented 10 years ago

What was the error? Did you not have a curl command?

Unless the script changed to try and execute itself, that should have worked if chmod +x worked..

bjarthur commented 10 years ago

i have curl installed. the problem seems to be that curl is not retrieving any content

$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
mmocny commented 10 years ago

You are right! curl -O https://raw.github.com/creationix/nvm/master/install.sh gives curl: Remote file name has no length!. Seems that url redirects to https://raw.githubusercontent.com/creationix/nvm/master/install.sh and curl doesn't follow redicts by default. I'll change the docs to add -L flag to curl. Thanks!