npm 或 yarn等代理管理命令

Mac 代理

解除SSL certificate 

git config --global http.sslVerify false

Npm

npm config set proxyhttp://userid:xxx@proxyURI

npm config set https-proxyhttp://userid:xxx@proxyURI

npm config set registryhttps://registry.npmjs.org/

npm config set rejectUnauthorized false

npm config set strict-ssl false

带账号 代理

npm config set proxyhttp://userid:123456@proxyURI

npm config set https-proxyhttp://userid:123456@proxyURI

npm config set registryhttps://registry.npmjs.org/

npm config set rejectUnauthorized false

npm config set strict-ssl false

Yarn

1, 通过如下命令设置 yarn 的代理

yarn config set proxyhttp://userid:123456@proxyURI

yarn config set https-proxyhttp://userid:123456@proxyURI

yarn config set registryhttps://registry.yarnpkg.com/

yarn config set strict-ssl false

Npm删除代理

npm config delete proxy

npm config delete https-proxy

yarn删除代理

yarn config delete proxy

yarn config delete https-proxy

Git

git config --global http.proxy "http://proxyURI"

删除 git 代理

git config --global --unset http.proxy

proxyURI 是组织或公司提供的对应URL

删除远程master 分支tag

git push --delete origin tagname

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容