
1 maoxs2 Aug 1, 2020 via Android 一般需要 github 下东西的库都支持通过环境变量选择本地已下载的文件或者通过环境变量自定义镜像网址(要是没就提 issue |
2 flyingfz Aug 1, 2020 一般而言, 需要从 github 下的东西, 这些包 应该会有环境变量可以设置镜像地址,一般而言, 这些在阿里镜像里也有。 当然, 上面提到的“一般而言”, 指的是 比较常用的包。 例如 前端经常用到的 node-sass , 还有 puppeteer 之类。 |
3 flyingfz Aug 1, 2020 |
4 love OP |
5 winzkh Aug 9, 2020 反代 github |
6 wisetc Aug 30, 2020 via iPhone 可以用缓存镜像,拉过一次之后就不用再找 upurl 了,不知道有没有这种方案。 |
7 ddllzz Jun 11, 2024 抱歉挖一下坟,我遇到的库不是“一般而言”的库:git://github.com/adobe-webplatform/eve.git 我目前的解决方案是: npm install 前执行 ``` git config --global url."https://sciproxy.com/https://github.com/".insteadOf "git://github.com/" ``` 安装完之后,要恢复的话 ``` git config --global --unset url."https://sciproxy.com/https://github.com/".insteadOf "git://github.com/" ``` 对于“一般而言”的库,可以看看: https://help.aliyun.com/document_detail/202442.html?spm=5176.smartservice_service_create_ticket_step_2.help.dexternal.70033f1bwPqkm6&spm#section-3rm-wmg-l27 |