-
Notifications
You must be signed in to change notification settings - Fork 33
caxa 2.0.0 postinstall never run properly #26
Comments
Thanks for the report. Can you help me reproduce the problem?
This repository does have releases, for example, https://github.com/leafac/caxa/releases/tag/v2.0.0 There are other packages that also depend on downloading stuff from GitHub on postinstall, for example, https://github.com/JoshuaWise/better-sqlite3. Do you know what is the general solution for these packages to work in China? |
If it helps, I am aware that npm scripts including
|
#28 This PR can make The CDN from: https://doc.fastgit.org/en-gb/guide.html#download-releases-or-source-code-archives |
Ohh, that’s very bad. I’m inclined to just put the stubs in the npm package. It’s only ~20MB anyway, and only developers would have to download them (not the users of the binaries produced by caxa). @maxb2, @pdcastro, @fcastilloec: Thoughts? |
I'm ok with having Last, if people in China sometimes have problems downloading from GitHub, what are the chances that they will also have problems downloading from |
Thanks for the input! I don’t know much either, but appears that there are mirrors of npm that are accessible in China (for example, https://npm.taobao.org). If that’s the case, then moving the stubs to npm will solve the issue. At the very least it’s one moving part less for our Chinese users to worry about. |
This is a general problem when running |
Moving the stubs to npm is a good idea, because of the mirror https://npm.taobao.org npm can be used stably in China. |
I've just tried accessing https://npm.taobao.org and got an error/info page that says NPM镜像站升级中,敬请期待!, which appears to translate as "NPM mirror station is being upgraded, so stay tuned!". If that's the reliable alternative to the GitHub releases page, then, well, ouch. :-) Ideally, it wouldn't be for open source package maintainers to worry about hosting alternatives to GitHub and npm to get around the Great Firewall of China. Microsoft bought GitHub who bought npm, so it should be a matter of the CEO of Microsoft sitting at the table with the relevant Chinese authorities and coming to an understanding. :-) Maybe Microsoft should create a GitHub mirror in China using their Azure operations there: https://docs.microsoft.com/en-us/azure/china/overview-operations I see that PR #28 adds the ability of selecting mirrors for |
Sometimes translation is really confusing... The page:
Actually says ->
Github does urgently need a stable Chinese mirror, but the capitalists may say that this is not profitable so they can solve it by themselves😒@microsoft
after rethinking the solutions, I think use npm to host stubs maybe a better idea, its more stable and convenient. Because almost everyone in china uses |
Thank you for all the valuable information. I’ll work on this as part of the v2.1.0 release next week. |
caxa@2.1 is out and the stubs are shipped in the npm package—the |
it works, thanks~ |
postinstall never run:
https://github.com/leafac/caxa/releases/download/v${package.version}/${stubName}
Does this repo have any release? and... for some reasons, github cannot be connected in some times in china.
The text was updated successfully, but these errors were encountered: