nvm詭異的報錯

安裝:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
執行命令:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
安裝node:

nvm ls-remote   顯示 N/Anode

而後調用一下:curl -v https://nodejs.org/dist/   發現git

* Adding handle: conn: 0x7fc4ea003000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc4ea003000) send_pipe: 1, recv_pipe: 0
* About to connect() to nodejs.org port 443 (#0)
* Trying 104.20.23.46...
* Connected to nodejs.org (104.20.23.46) port 443 (#0)
* Unknown SSL protocol error in connection to nodejs.org:-9805
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to nodejs.org:-9805github

因此nvm在獲取遠端倉庫的時候,就獲取不到版本信息,是由於自己的ssl有問題,因此:bash

export NVM_NODEJS_ORG_MIRROR=http://nodejs.org/dist   向遠方倉庫採用http請求  
相關文章
相關標籤/搜索