1.1.12 • Published 5 months ago

jiqie-cli v1.1.12

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

git 代理不走全局或规则需要单独配置

如果你的网络环境需要代理,请运行以下命令:

全局添加或移除 git config 命令后需跟 --global

git config http.proxy http://127.0.0.1:7890
git config https.proxy https://127.0.0.1:7890

或者编辑 .git/config 文件,添加以下内容:

[http]
    proxy = http://127.0.0.1:7890
[https]
    proxy = https://127.0.0.1:7890

运行以下命令,检查当前项目的 Git 配置:

查看全局配置 --local 替换为 --global

git config --local --list

你会看到类似以下的输出:

http.proxy=http://127.0.0.1:7890
https.proxy=https://127.0.0.1:7890

如果后续不需要代理,可以移除当前项目的代理配置:

git config --unset http.proxy
git config --unset https.proxy

.npmrc(自定义源可能会导致发布 npm 失败)

固定项目 npm 源,在项目根目录下创建 .npmrc 文件,添加以下内容:

registry=https://registry.npmjs.org/

.yarnrc

固定项目 yarn 源,在项目根目录下创建 .yarnrc 文件,添加以下内容:

registry "https://registry.npmjs.org/"
1.1.12

5 months ago

1.1.11

5 months ago

1.1.10

5 months ago

1.1.9

5 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago