我正在尝试使用nvm安装node v8.16.1。我使用了
但是当我执行
我尝试过以下解决方案:
curl -k -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
安装了nvm。
nvm --version
像预期的那样给出了0.35.3
。但是当我执行
nvm install 8.16.1
时,会显示Version '8.16.1' not found - try nvm ls-remote to browse available versions.
。
nvm ls-remote
的结果是N/A
。我尝试过以下解决方案:
- 将
export NVM_NODEJS_ORG_MIRROR=http://nodejs.org/dist
添加到~/.bashrc中 - 将
export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
添加到~/.bashrc中 - 将
export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
添加到~/.bashrc中 - sudo update-ca-certificates