mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(npm): use the Huawei npm mirror
Only Huawei works with prefetch-npm-deps: npmmirror 404s on its doubled slash, and Tencent answers 567 to its concurrent fetches (WA-049). Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
1 parent
9a307b313d
commit
c4c75a2d8d
2 files changed
+24
-21
No files matched your search
+3
-1
@@ -14,8 +14,10 @@ let
|
||||
# fetchNpmDeps (package-lock tarballs and registry packuments).
|
||||
nixpkgsConfig = {
|
||||
allowUnfree = true;
|
||||
# Only Huawei works here: npmmirror 404s on prefetch-npm-deps' doubled
|
||||
# slash, and Tencent answers 567 to its concurrent fetches (WA-049).
|
||||
npmRegistryOverrides = {
|
||||
"registry.npmjs.org" = "https://registry.npmmirror.com";
|
||||
"registry.npmjs.org" = "https://mirrors.huaweicloud.com/repository/npm";
|
||||
};
|
||||
rewriteURL =
|
||||
url:
|
||||
|
||||
Reference in new issue
Block a user