You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
This unfortunately breaks syncing for my usecase where I'm not syncing from the official npm.
How could we make this configurable. I see a couple of options:
create yet another config option config.sourceNpmRegistryWithShortSupport
simply use config.sourceNpmRegistry and if it doesn't support /-/short, syncing won't work. in this case, setting sourceNpmRegistry to http://registry.npm.taobao.org (default) or http://r.cnpmjs.org makes sure syncing works.
check if config.sourceNpmRegistryIsCNpm is true which case use the config.sourceNpmRegistry else fallback to http://r.cnpmjs.org
don't use the /-/short API now that it's not supported in npm any longer - this is more work however.
Option 3 seems the simplest for now and backwards compatible - I'll make a PR for that, but please let me know your thoughts.
The text was updated successfully, but these errors were encountered:
Which sourceRegistry are you using? And perhaps setting
sourceRegistryIsCnpm to false in the config can fix the issue?
On Oct 15, 2014 11:16 AM, "fengmk2" notifications@github.com wrote:
WTF .... there's no way to full sync from registry.npmjs.org now ...
—
Reply to this email directly or view it on GitHub #474 (comment).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I've noticed there's one URL that is hardcoded and not configurable at the moment.
https://github.com/cnpm/cnpmjs.org/blob/master/proxy/npm.js#L77
This unfortunately breaks syncing for my usecase where I'm not syncing from the official npm.
How could we make this configurable. I see a couple of options:
config.sourceNpmRegistryWithShortSupport
config.sourceNpmRegistry
and if it doesn't support /-/short, syncing won't work. in this case, setting sourceNpmRegistry to http://registry.npm.taobao.org (default) or http://r.cnpmjs.org makes sure syncing works.config.sourceNpmRegistryIsCNpm
is true which case use theconfig.sourceNpmRegistry
else fallback tohttp://r.cnpmjs.org
Option 3 seems the simplest for now and backwards compatible - I'll make a PR for that, but please let me know your thoughts.
The text was updated successfully, but these errors were encountered: