Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

"curl: not found" in 'install.sh' - Fallback to wget #2760

Closed
thomasfr opened this Issue · 1 comment

3 participants

@thomasfr

Hi,

it is not possible to install npm with the install.sh script when curl is not installed.
This is the case on debian 6 for instance.

tar=/bin/tar
version:
tar (GNU tar) 1.23
Copyright © 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL Version 3 oder später <http://gnu.org/licenses/gpl.html>
Dies ist freie Software: Sie dürfen sie ändern und weiter verbreiten.
Es gibt KEINERLEI GARANTIE, so weit das Gesetz es erlaubt.

Geschrieben von John Gilmore und Jay Fenlason.
install npm@1.1
/root/application-skeleton/var/opt/npm/install.sh: 202: curl: not found
/root/application-skeleton/var/opt/npm/install.sh: 215: curl: not found
Failed to get tarball url for npm/1.1

Maybe you can use something like this i found in 'n':

## Thanks to https://github.com/visionmedia/n/blob/master/bin/n#L35-45
GET=

# wget support (Added --no-check-certificate for Github downloads)
which wget > /dev/null && GET="wget --no-check-certificate -q -O-"

# curl support
which curl > /dev/null && GET="curl --insecure -# -L"
@isaacs
Owner

Why not just install npm along with node? That install script is only still around for historical reasons anyway.

@luk- luk- closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.