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 set a mirror repository with nvm command #2378

Closed
xcf007 opened this issue Dec 9, 2020 · 2 comments
Closed

how to set a mirror repository with nvm command #2378

xcf007 opened this issue Dec 9, 2020 · 2 comments

Comments

@xcf007
Copy link

xcf007 commented Dec 9, 2020

Operating system and version:

nvm debug output:

nvm ls output:

How did you install nvm?

What steps did you perform?

What happened?

What did you expect to happen?

Is there anything in any of your profile files that modifies the PATH?

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?

@ljharb
Copy link
Member

ljharb commented Dec 10, 2020

A mirror for what, exactly? For nodejs.org/dist and iojs.org/dist, you can set the appropriate env vars: https://github.com/nvm-sh/nvm/blob/master/nvm.sh#L1852-L1853

@ljharb ljharb closed this as completed Dec 10, 2020
@xcf007
Copy link
Author

xcf007 commented Dec 15, 2020

thanks a lot,you're right.
just set env: NVM_NODEJS_ORG_MIRROR

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

2 participants