简体   繁体   English

如何解决通过 https 或 ssh 问题丢弃 git 协议

[英]How to solve discarded git protocol over https or ssh issue

Github Discarded git protocol over https or ssh. Github 通过 https 或 ssh 丢弃 git 协议。

To read more about here - Improving Git protocol security on GitHub要在此处阅读更多信息 - 改进 GitHub 上的 Git 协议安全性

Package won't work using git:// protocol Package 不能使用 git:// 协议

Fixes I Did in node.js我在 node.js 中所做的修复

  • Added script "preinstall": "git config --global url."https://".insteadOf git://"添加脚本“预安装”:“git config --global url.”https://”.insteadOf git://”
  • Added unsafe-perm = true In.npmrc file.添加了 unsafe-perm = true In.npmrc 文件。 (optional if u getting some write permission issue ) (可选,如果你得到一些写权限问题)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM