-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
nvm ls-remote shows only list of iojs and no versions of node (macOS) #3381
Comments
What does |
nvm ls-remote returns the following: |
not nvm ls-remote, nvm_ls_remote |
The output is N/A |
Essentially this means it's unable to get a listing from https://nodejs.org/dist - presumably I'm happy to try to debug this further; the For example, does a working internet connection require a proxy or something? |
My computer does not have the ~/.curlrc file. I believe the request to https://nodejs.org/dist/ is okay. In the web browser, access https://nodejs.org/dist/, refer to the screenshot below. No Proxy were started during the above tests. |
The actual file nvm requests is https://nodejs.org/dist/index.tab, if that has different results. Not sure how else to help tho :-/ |
Does nvm generate log files? |
No. You can set -x and see a ton of extra output, though. |
I resolved this by removing the following line of environment variable definition in my bash profile: export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node This issue may be related to the recent ban against NPM/Docker mirror sites within China mainland. |
aha, I missed that in your OP's Glad you figured it out! |
Operating system and version:
nvm debug
output:nvm ls
output:How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
What steps did you perform?
nvm install 16.17.1
What happened?
Version '16.17.1' not found - try
nvm ls-remote
to browse available versions.What did you expect to happen?
nvm ls-remote returns the following:
iojs-v1.0.0
iojs-v1.0.1
iojs-v1.0.2
iojs-v1.0.3
iojs-v1.0.4
iojs-v1.1.0
iojs-v1.2.0
iojs-v1.3.0
iojs-v1.4.1
iojs-v1.4.2
iojs-v1.4.3
iojs-v1.5.0
iojs-v1.5.1
iojs-v1.6.0
iojs-v1.6.1
iojs-v1.6.2
iojs-v1.6.3
iojs-v1.6.4
iojs-v1.7.1
iojs-v1.8.1
iojs-v1.8.2
iojs-v1.8.3
iojs-v1.8.4
iojs-v2.0.0
iojs-v2.0.1
iojs-v2.0.2
iojs-v2.1.0
iojs-v2.2.0
iojs-v2.2.1
iojs-v2.3.0
iojs-v2.3.1
iojs-v2.3.2
iojs-v2.3.3
iojs-v2.3.4
iojs-v2.4.0
iojs-v2.5.0
iojs-v3.0.0
iojs-v3.1.0
iojs-v3.2.0
iojs-v3.3.0
iojs-v3.3.1
expect a list of available node versions to install
Is there anything in any of your profile files that modifies the
PATH
?export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?The text was updated successfully, but these errors were encountered: