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

How to resolve fnm 'error sending request for url (https://nodejs.org/dist/index.json)' on MacOS #1241

Open
Weasley-J opened this issue Aug 31, 2024 · 0 comments

Comments

@Weasley-J
Copy link

Weasley-J commented Aug 31, 2024

How to resolve fnm 'error sending request for url (https://nodejs.org/dist/index.json)' of MacOS users?

The phenomenon: 'error sending request for url (https://*)'

1 Open your network proxy(Clash,Clash X, ...)

image-20240831235043985

2 Open terminal of your computer

Set env as below if you're installed fnm by brew:
eval "$(/opt/homebrew/bin/fnm env --use-on-cd)"

Taking effect on your .bash_profile

3 Copy command line for terminal and execute

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

image-20240901001255377

4 Verify fnm send requests to nodejs

fnm ls-remote

image-20240901000922363

image-20240901001134264

Install a target version which you need,Wish all you guys success!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant