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

Improve reliability of downloads from custom node mirrors #560

Closed
shadowspawn opened this issue Mar 27, 2019 · 2 comments
Closed

Improve reliability of downloads from custom node mirrors #560

shadowspawn opened this issue Mar 27, 2019 · 2 comments

Comments

@shadowspawn
Copy link
Collaborator

Technical. Opening this partly so I can close some related old Pull Requests!

There are occasionally problems reported by users in China using https://npm.taobao.org/mirrors/node for downloads. These are partly caused by differences from the main mirror encountered during site scraping to find version numbers, partly due to extra redirects, and partly due to faulty code introduced trying to fix those...

Tentative plan:

  • rename environment variable to N_NODE_MIRROR and publicise in README
  • use command status codes and support redirects instead of reading command output to detect redirects
  • use index.tab instead of screen scraping
@shadowspawn
Copy link
Collaborator Author

Prerelease available via npm i n@next for v6. Release notes: https://github.com/tj/n/releases/tag/6.0.0-0

@shadowspawn
Copy link
Collaborator Author

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

No branches or pull requests

1 participant