REHL7
解決所有Proxy & HTTPS 的問題
安裝Nodejs
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_7.x | sudo -E bash -
npm config set -g strict-ssl false
npm config set proxy http://username:password@server:port
npm config set https-proxy http://username:pawword@server:port
安裝Nodejs 3
參考文件, 沒啥用
curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
安裝Nodejs 1
參考連結 , 但沒啥用
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
安裝Nodejs 2
官方參考連結 , 但沒啥用
curl -sL https://rpm.nodesource.com/setup_7.x | bash -