isaacs/npm — Issue #1873: Centos npm Install Fails (Failed to get tarball url for npm/latest)
Author: tingham
Created: 2011-12-12 20:27:20+00:00
State: open

[root@mwp01 ~]# curl http://npmjs.org/install.sh | npm_debug=1 clean=no sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7184 100 7184 0 0 76720 0 --:--:-- --:--:-- --:--:-- 241k
Running in debug mode.
Note that this requires bash or zsh.
+ set -o pipefail
+ npm_config_loglevel=verbose
+ export npm_config_loglevel
++ which node
+ node=/usr/local/bin/node
+ ret=0
+ '[' 0 -eq 0 ']'
+ '[' -x /usr/local/bin/node ']'
+ exit 0
+ TMP=
+ '[' x = x ']'
+ TMP=/tmp
+ TMP=/tmp/npm.28608
+ rm -rf /tmp/npm.28608
+ mkdir /tmp/npm.28608
+ '[' 0 -ne 0 ']'
+ BACK=/root
+ ret=0
+ tar=
+ '[' -z '' ']'
+ tar=
+ '[' -z '' ']'
++ which tar
+ tar=/bin/tar
+ ret=0
+ '[' 0 -eq 0 ']'
+ '[' -x /bin/tar ']'
+ echo tar=/bin/tar
tar=/bin/tar
+ echo version:
version:
+ /bin/tar --version
tar (GNU tar) 1.15.1
+ ret=0
+ '[' 0 -eq 0 ']'
+ exit 0
+ MAKE=NOMAKE
+ '[' xNOMAKE = x ']'
+ make=NOMAKE
+ '[' -x NOMAKE ']'
+ make=NOMAKE
+ '[' -x /bin/bash ']'
+ exit 0
+ t=
+ '[' -z '' ']'
+ t=latest
+ cacert='
-----BEGIN CERTIFICATE-----
MIIChzCCAfACCQDauvz/KHp8ejANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMC
VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMQwwCgYDVQQKEwNucG0x
IjAgBgNVBAsTGW5wbSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxDjAMBgNVBAMTBW5w
bUNBMRcwFQYJKoZIhvcNAQkBFghpQGl6cy5tZTAeFw0xMTA5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MZbnBtIENlcnRpZmlj
YXRlIEF1dGhvcml0eTEOMAwGA1UEAxMFbnBtQ0ExFzAVBgkqhkiG9w0BCQEWCGlA
aXpzLm1lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLI4tIqPpRW+ACw9GE
OgBlJZwK5f8nnKCLK629Pv5yJpQKs3DENExAyOgDcyaF0HD0zk8zTp+ZsLaNdKOz
Gn2U181KGprGKAXP6DU6ByOJDWmTlY6+Ad1laYT0m64fERSpHw/hjD3D+iX4aMOl
y0HdbT5m1ZGh6SJz3ZqxavhHLQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAC4ySDbC
l7W1WpLmtLGEQ/yuMLUf6Jy/vr+CRp4h+UzL+IQpCv8FfxsYE7dhf/bmWTEupBkv
yNL18lipt2jSvR3v6oAHAReotvdjqhxddpe5Holns6EQd1/xEZ7sB1YhQKJtvUrl
ZNufy1Jf1r0ldEGeA+0ISck7s+xSh9rQD2Op
-----END CERTIFICATE-----
'
+ cacert=/tmp/npm.28608/cafile.crt
++ curl -SsL --cacert /tmp/npm.28608/cafile.crt https://registry.npmjs.org/npm/latest
++ sed -e 's/^.*tarball":"//'
++ sed -e 's/".*$//'
curl: (7) couldn't connect to host
++ echo ''
+ url=
+ ret=0
+ '[' x = x ']'
+ ret=125
++ curl -SsL --cacert /tmp/npm.28608/cafile.crt https://registry.npmjs.org/npm/latest
++ sed 's/^.*tarball":"//'
++ sed 's/".*$//'
curl: (7) couldn't connect to host
++ echo ''
+ url=
+ ret=0
+ '[' x = x ']'
+ ret=125
+ '[' 125 -ne 0 ']'
+ echo 'Failed to get tarball url for npm/latest'
Failed to get tarball url for npm/latest
+ exit 125