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

Version 'iojs' not found - try nvm ls-remote to browse available versions. #653

Closed
ckken opened this issue Feb 10, 2015 · 21 comments
Closed
Labels
OS: centos SSL issue Problems connecting securely to https://nodejs.org or https://iojs.org - often certificate issues.

Comments

@ckken
Copy link

ckken commented Feb 10, 2015

centos
nvm version is 0.23.3

@ckken
Copy link
Author

ckken commented Feb 10, 2015

[root@AY140420125729181a8eZ ~]# nvm_download -L -s $NVM_IOJS_ORG_MIRROR/ --verbose -o -

  • About to connect() to iojs.org port 443 (#0)
  • Trying 104.236.136.193... connected
  • Connected to iojs.org (104.236.136.193) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • NSS error -8092
  • Closing connection #0
  • SSL connect error

@ljharb ljharb added OS: centos SSL issue Problems connecting securely to https://nodejs.org or https://iojs.org - often certificate issues. labels Feb 10, 2015
@ljharb
Copy link
Member

ljharb commented Feb 10, 2015

Ah - this is an SSL issue with your OS. You probably need to update your OS's certificate authorities, and make sure you're not connecting with SSLv3.

@ljharb ljharb closed this as completed Feb 10, 2015
@ckken
Copy link
Author

ckken commented Feb 11, 2015

how can i update ls-remote when i change the mirror
i use https://npm.taobao.org/mirrors/iojs/ and run nvm_download -L -s $NVM_IOJS_ORG_MIRROR/ --verbose -o - is work bug ls-remote hasn't iojs

@ljharb
Copy link
Member

ljharb commented Feb 11, 2015

@ckken export NVM_IOJS_ORG_MIRROR="https://npm.taobao.org/mirrors/iojs/" should work. Note that you'll need to export that before sourcing nvm.sh.

@ckken
Copy link
Author

ckken commented Feb 11, 2015

yes, i reinstall nvm and try it ,but also havent iojs

@ckken
Copy link
Author

ckken commented Feb 11, 2015

thanks, i add it before source ~/.nvm/nvm.sh and fixed it

@kristianmandrup
Copy link

My ~/.bash_profile

# ...
export NVM_IOJS_ORG_MIRROR="https://npm.taobao.org/mirrors/iojs/"
export EDITOR='subl -w'
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh  # This loads NVM
. ~/my-scripts/z.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Still doesn't work for me ;(

@ljharb
Copy link
Member

ljharb commented Apr 12, 2015

@kristianmandrup NVM_IOJS_ORG_MIRROR="https://npm.taobao.org/mirrors/iojs/" nvm ls-remote iojs works for me. If not, what happens when you run nvm_download -L -s $NVM_IOJS_ORG_MIRROR/ --verbose -o -?

@xiaoshengaimm
Copy link

$ nvm --version
0.24.1

the lastest nvm version.

export NVM_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs/

set the NVM_IOJS_ORG_MIRROR;
the http site is as the same as https site on npm.taobao.org
also i have tried https://iojs.org/dist

. /home1/repo/.nvm/nvm.sh

source nvm.sh as you said

nvm ls-remote iojs
            N/A

not work. i am confuse now.......

@ljharb
Copy link
Member

ljharb commented Apr 16, 2015

@xiaoshengaimm Can you please gist the output of nvm_download -L -s https://npm.taobao.org/mirrors/iojs/ --verbose -o -? (also note that the NVM_IOJS_ORG_MIRROR shuold not end in a slash)

@xiaoshengaimm
Copy link

@ljharb output

$ nvm_download -L -s https://npm.taobao.org/mirrors/iojs/ --verbose -o -
* About to connect() to npm.taobao.org port 443
*   Trying 42.120.63.172... connected
* Connected to npm.taobao.org (42.120.63.172) port 443
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
*    subject: /C=CN/ST=Zhejiang/L=Hangzhou/O=Taobao(China) Software Co., Ltd/OU=RDC/OU=Organization and domain(s) authenticated by iTrus China/CN=npm.taobao.org
*    start date: 2014-07-01 00:00:00 GMT
*    expire date: 2016-07-01 23:59:59 GMT
*    subjectAltName: npm.taobao.org matched
*    issuer: /C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)10/CN=VeriSign Class 3 International Server CA - G3
* SSL certificate verify ok.
> GET /mirrors/iojs/ HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: npm.taobao.org
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: nginx/1.1.19
< Date: Fri, 17 Apr 2015 01:36:45 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 4202
< Connection: keep-alive
< Vary: Accept-Encoding
< ETag: "yLxM0kg17wF5H+BAT9FWXw=="
< X-Response-Time: 13
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>io.js Mirror</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="//dn-staticfile.qbox.me/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <style>
      #fork{position:fixed;top:0;right:0;_position:absolute;z-index: 10000;}
      .bottom{margin: 20px auto; width: 100%; text-align: center;}
      .container{width: 1080px; margin: 50px auto;}
    </style>
  <head>
  <body>
    <a href="https://github.com/cnpm/cnpmjs.org" id="fork" target="_blank">
        <img alt="Fork me on GitHub" src="//s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
    </a>
    <div class="container">
      <h1>Mirror index of <a target="_blank" href="https://iojs.org/dist/">https://iojs.org/dist/</a></h1>
<hr>
<pre><a href="../">../</a>
<a href="/mirrors/iojs/latest/">latest/</a>                                           14-Apr-2015 13:32                                 -
<a href="/mirrors/iojs/v1.0.0/">v1.0.0/</a>                                           14-Jan-2015 03:59                                 -
<a href="/mirrors/iojs/v1.0.1/">v1.0.1/</a>                                           14-Jan-2015 05:03                                 -
<a href="/mirrors/iojs/v1.0.2/">v1.0.2/</a>                                           16-Jan-2015 05:37                                 -
<a href="/mirrors/iojs/v1.0.3/">v1.0.3/</a>                                           20-Jan-2015 07:54                                 -
<a href="/mirrors/iojs/v1.0.4/">v1.0.4/</a>                                           24-Jan-2015 12:13                                 -
<a href="/mirrors/iojs/v1.1.0/">v1.1.0/</a>                                           03-Feb-2015 23:30                                 -
<a href="/mirrors/iojs/v1.2.0/">v1.2.0/</a>                                           11-Feb-2015 09:58                                 -
<a href="/mirrors/iojs/v1.3.0/">v1.3.0/</a>                                           20-Feb-2015 10:30                                 -
<a href="/mirrors/iojs/v1.4.1/">v1.4.1/</a>                                           27-Feb-2015 16:31                                 -
<a href="/mirrors/iojs/v1.4.2/">v1.4.2/</a>                                           01-Mar-2015 18:04                                 -
<a href="/mirrors/iojs/v1.4.3/">v1.4.3/</a>                                           03-Mar-2015 06:32                                 -
<a href="/mirrors/iojs/v1.5.0/">v1.5.0/</a>                                           07-Mar-2015 00:58                                 -
<a href="/mirrors/iojs/v1.5.1/">v1.5.1/</a>                                           09-Mar-2015 19:05                                 -
<a href="/mirrors/iojs/v1.6.0/">v1.6.0/</a>                                           20-Mar-2015 23:22                                 -
<a href="/mirrors/iojs/v1.6.1/">v1.6.1/</a>                                           20-Mar-2015 23:23                                 -
<a href="/mirrors/iojs/v1.6.2/">v1.6.2/</a>                                           24-Mar-2015 00:40                                 -
<a href="/mirrors/iojs/v1.6.3/">v1.6.3/</a>                                           31-Mar-2015 22:34                                 -
<a href="/mirrors/iojs/v1.6.4/">v1.6.4/</a>                                           06-Apr-2015 22:44                                 -
<a href="/mirrors/iojs/v1.7.1/">v1.7.1/</a>                                           14-Apr-2015 13:32                                 -
<a href="/mirrors/iojs/index.json">index.json</a>                                        14-Apr-2015 13:30                                 4995(4.88kb)
<a href="/mirrors/iojs/index.tab">index.tab</a>                                         14-Apr-2015 13:30                                 3023(2.95kb)
</pre>
<hr>

    </div>

      <hr/>
      <div class="bottom">
        Copyright 2013 - 2014 &copy; <a href="https://github.com/cnpm" target="_blank">cnpm</a>
        |
        <a href="/">Home</a>
    </div>
  </body>
</html>
* Connection #0 to host npm.taobao.org left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

and then

$ export NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs
$ nvm ls-remote iojs
            N/A

@ljharb
Copy link
Member

ljharb commented Apr 17, 2015

ok, so one potential problem is that there's actually two environment variables for iojs - the other would be export NVM_IOJS_ORG_VERSION_LISTING="https://npm.taobao.org/mirrors/iojs/index.tab".

Can you try setting those variables, and/or running:

NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs NVM_IOJS_ORG_VERSION_LISTING="https://npm.taobao.org/mirrors/iojs/index.tab" nvm ls-remote iojs

@xiaoshengaimm
Copy link

@ljharb that's ok.....thanks you very much!

is there any documents about nvm support iojs?i have seen the github; but nothing about NVM_IOJS_ORG_VERSION_LISTING.

@ljharb
Copy link
Member

ljharb commented Apr 17, 2015

@xiaoshengaimm no, overriding the environment variables is an advanced feature that I prefer not to document - both variables are near the top of nvm.sh though.

The real solution should be fixing your OS' SSL errors so that you can connect successfully to the official site.

@xiaoshengaimm
Copy link

@ljharb thanks

i will read the codes.

@SiZapPaaiGwat
Copy link

thanks, you guys!

the final solution is install like this

NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs
NVM_IOJS_ORG_VERSION_LISTING="https://npm.taobao.org/mirrors/iojs/index.tab" 
nvm install iojs

@ljharb
Copy link
Member

ljharb commented May 15, 2015

That's not a true final solution. The true final solution is to fix your OS's SSL certificates, or fix the network conditions that make you unable to reach iojs.org. This is just a workaround.

@AleshaOleg
Copy link

AleshaOleg commented Aug 20, 2016

Just for homebrew users!
Hey. I had the same problem, as you had.
May be would be useful for somebody, how I resolve this one.
I changed my .bash_profile settings, to this:
export NVM_DIR=$(brew --prefix)/var/nvm source $(brew --prefix nvm)/nvm.sh

Then, when I run nvm ls-remote I have an iojs version in list.

@ljharb
Copy link
Member

ljharb commented Aug 20, 2016

@AleshaOleg heads up; nvm is not supported or recommended to be installed with homebrew.

@AleshaOleg
Copy link

@ljharb why? I should change my message to notice, the solution is just for homebrew.

@ljharb
Copy link
Member

ljharb commented Aug 20, 2016

It's been discussed at length in this thread here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: centos SSL issue Problems connecting securely to https://nodejs.org or https://iojs.org - often certificate issues.
Projects
None yet
Development

No branches or pull requests

6 participants